Re: !foo vs foo == nil
Re: !foo vs foo == nil
- Subject: Re: !foo vs foo == nil
- From: Scott Ribe <email@hidden>
- Date: Thu, 21 Aug 2008 14:23:18 -0600
- Thread-topic: !foo vs foo == nil
You're forgetting that null pointers *must* convert to 0, this is why
if(!foo) works. I think that would be the "Except as previously
specified.." part of what you quoted ;-)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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