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: Kyle Sluder <email@hidden>
- Date: Sat, 25 Feb 2012 07:23:53 -0800
On Feb 25, 2012, at 6:22 AM, Scott Ribe <email@hidden> wrote:
> I saw your citations. You're ignoring the "Except as previously specified" clause at the beginning of the sentence you quote. Null pointers converted to int become 0; other pointers are implementation defined.
Please cite where the standard says null pointers become zero when converted to integer.
And then show how that jives with footnote 56, which says that the intent of the standard is that null pointers become whatever integer is most similar to the bit pattern used for null pointers, which may or may not be the same as that used for integer zero depending on the platform.
--Kyle Sluder
_______________________________________________
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