Re: [Obj-C] if (self) vs. if (self != nil)
Re: [Obj-C] if (self) vs. if (self != nil)
- Subject: Re: [Obj-C] if (self) vs. if (self != nil)
- From: "Gary L. Wade" <email@hidden>
- Date: Sat, 25 Feb 2012 09:51:51 -0800
On Feb 25, 2012, at 6:29 AM, Scott Ribe <email@hidden> wrote:
> (!0) evaluates to 1.
I've seen it evaluate to -1 in one compiler some time back when stored in a signed integer bit field variable.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
_______________________________________________
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