Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
- Subject: Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
- From: Ondra Cada <email@hidden>
- Date: Thu, 3 Jun 2004 16:17:16 +0200
Alastair,
On 3.6.2004, at 15:49, Alastair Houghton wrote:
>
Are you certain that this is a bug?
Sure I am. Among others, since...
>
I don't see where in the documentation for NSCopying it says that the
>
copy is necessarily a deep one, and it seems to make more sense in
>
most cases for a collection class's -copy to perform a shallow copy,
>
especially for the very common case where a collection is used to hold
>
a set of immutable objects.
... in this case a shallow copy is *the very same* operation as a deep
copy, thanks to the fact an immutable object, of course, is not
actually copied!
---
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.