Re: !foo vs foo == nil
Re: !foo vs foo == nil
- Subject: Re: !foo vs foo == nil
- From: Ken Thomases <email@hidden>
- Date: Wed, 20 Aug 2008 18:50:53 -0500
On Aug 20, 2008, at 6:15 PM, Torsten Curdt wrote:
I guess my questions wasn't phrased correctly. The point was more:
is 'nil' really the equivalent of 0 or NULL.
Let's put it this way: freshly allocated objects have their memory
zeroed out, except for their isa pointer. You can also rely on this
meaning that any object pointer ivars you might have are nil. QED
-Ken
_______________________________________________
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