• 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: Declaring Variables - Setting to nil VS Not Setting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declaring Variables - Setting to nil VS Not Setting?


  • Subject: Re: Declaring Variables - Setting to nil VS Not Setting?
  • From: Chris Tracewell <email@hidden>
  • Date: Thu, 26 Apr 2012 13:50:15 -0700

On Apr 26, 2012, at 1:20 PM, David Duncan wrote:

> In C unless you explicitly initialize a local variable its value is undefined, and Objective-C inherits this behavior.

Thank you, that was what I was after.

> I believe however that under ARC these lines are equivalent (at least thats my reading of section 4.2 on initialization at <http://clang.llvm.org/docs/AutomaticReferenceCounting.html>) but given your comments I suspect you are not using ARC.

I'm using GC, still on 10.6 and XCode 3.2.6


--chris
_______________________________________________

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: 
 >Declaring Variables - Setting to nil VS Not Setting? (From: Chris Tracewell <email@hidden>)
 >Re: Declaring Variables - Setting to nil VS Not Setting? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Declaring Variables - Setting to nil VS Not Setting?
  • Next by Date: Re: Question about dispatch_timer function
  • Previous by thread: Re: Declaring Variables - Setting to nil VS Not Setting?
  • Next by thread: Re: Declaring Variables - Setting to nil VS Not Setting?
  • Index(es):
    • Date
    • Thread