• 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: Initializing object pointers to nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Initializing object pointers to nil
      • From: j o a r <email@hidden>
References: 
 >Initializing object pointers to nil (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: import PB project
  • Next by Date: Re: Initializing object pointers to nil
  • Previous by thread: Initializing object pointers to nil
  • Next by thread: Re: Initializing object pointers to nil
  • Index(es):
    • Date
    • Thread