• 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: "mm w" <email@hidden>
  • Date: Wed, 20 Aug 2008 21:07:40 -0700

please, don't truncate my answer... especially *

On Wed, Aug 20, 2008 at 8:27 PM, Clark Cox <email@hidden> wrote:
> On Wed, Aug 20, 2008 at 7:44 PM, mm w <email@hidden> wrote:
>> NULL does not have to be 0, 0 could be a valid pointer value
>
> This is not true, the C standard guarantees that 0, converted to any
> pointer type is a NULL pointer constant. It is not possible to convert
> 0 to a non-NULL pointer.
>
> --
> Clark S. Cox III
> email@hidden
>



--
-mmw
_______________________________________________

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: 
 >!foo vs foo == nil (From: Torsten Curdt <email@hidden>)
 >Re: !foo vs foo == nil (From: "mm w" <email@hidden>)
 >Re: !foo vs foo == nil (From: Andrew Merenbach <email@hidden>)
 >Re: !foo vs foo == nil (From: "mm w" <email@hidden>)
 >Re: !foo vs foo == nil (From: "mm w" <email@hidden>)
 >Re: !foo vs foo == nil (From: Quincey Morris <email@hidden>)
 >Re: !foo vs foo == nil (From: "mm w" <email@hidden>)
 >Re: !foo vs foo == nil (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: NSView confusion
  • Next by Date: Re: !foo vs foo == nil
  • Previous by thread: Re: !foo vs foo == nil
  • Next by thread: [moderator] Re: !foo vs foo == nil
  • Index(es):
    • Date
    • Thread