• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: !foo vs foo == nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: !foo vs foo == nil (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Design Question: Pro & Cons of KVC/KVO
  • Next by Date: Re: Preventing windows from being dragged
  • Previous by thread: Re: !foo vs foo == nil
  • Next by thread: Re: !foo vs foo == nil
  • Index(es):
    • Date
    • Thread