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 21:10:17 -0600
- Thread-topic: !foo vs foo == nil
> "1 When any scalar value is converted to_Bool, the result is 0 if the
> value compares equal to 0; otherwise, the result is 1."
Aaaaaaaaaaaaaaaaaaaaaaahhh... I looked and looked for the antecedent to that
particular "except as otherwise specified" and couldn't find it. So C99
narrows the prior null pointer -> 0 integral type requirement to only apply
to conversions to the semi-obscure _Bool type. OK. I got it now ;-)
--
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