Re: !foo vs foo == nil
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