On Feb 24, 2012, at 10:36 AM, Keary Suska wrote:

>> I also heard that generally speaking NULL is not necessarily always
>> equal to 0 on all architectures.
> 
> 
> I don't believe this is the case.

Actually it is--in fact there can even be multiple representations that are 
null, but again the language is specified to take care of making NULL pointers 
equivalent to 0 for comparing pointers to 0 and assigning constant 0 to 
pointers. It's not something most of us need to worry about: obscure embedded 
stuff, ancient segmented architectures, different size pointers to different 
data types, and other such madness.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to