Re: Initializing object pointers to nil
Re: Initializing object pointers to nil
- Subject: Re: Initializing object pointers to nil
- From: Sherm Pendley <email@hidden>
- Date: Thu, 17 Apr 2003 05:31:35 -0400
On Thursday, April 17, 2003, at 04:10 AM, Jeffrey Mattox wrote:
I know that [nil release] is allowed (although I can't find
documentation),
Right on both counts - that is, messages to nil are allowed, and I can't
recall exactly where in the docs that is spelled out. ;-)
but am I guaranteed that an object pointer will be nil if it hasn't
been explicitly set?
Again, I can't seem to find documentation that spells it out, but have
heard it mentioned many times that variables in Objective-C are
initialized to 0 (aka nil, aka NULL) by default.
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.