Re: Memory Management Question
Re: Memory Management Question
- Subject: Re: Memory Management Question
- From: Alastair Houghton <email@hidden>
- Date: Mon, 2 Jul 2007 23:35:14 +0100
On 2 Jul 2007, at 22:52, Uli Kusterer wrote:
On 02.07.2007, at 18:06, Clark Cox wrote:
Well, if the object is already nil, then sending a message to it is
essentially a no-op; so your check is probably redundant.
That's not quite true. It's only a no-op if it returns nothing
(void) a pointer (id, or other object), or an int. If it returns
anything else, messages to NIL are undefined.
Well it's still a no-op, it's just that the returned value is
undefined. The message will still be ignored.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden