Re: Ugly bug in Foundation, beware!
Re: Ugly bug in Foundation, beware!
- Subject: Re: Ugly bug in Foundation, beware!
- From: Ondra Cada <email@hidden>
- Date: Thu, 3 Jun 2004 18:01:00 +0200
Marco,
On 3.6.2004, at 17:48, Marco Scheurer wrote:
>
This is not a bug: there are cases where you want to make a deep copy,
>
but they should be rare, and only you know what they are.
Well, paint me a newbie. What are the archetypal usages for copy in
Cocoa? I'd say
- dictionary keys, sets: deep copy needed not to break hash when the
guts change, OR you stick with the current nonsense of all two-item
arrays in one hash, which is a disaster for efficiency;
- undo snapshots: deep copy self-evidently needed, or you undo back to
later state than the proper one;
- has-a setters: deep-copy self-evidently needed, or your has-a
invisibly turns into a shared object.
Any other arguments?
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.