Re: Declaring Variables - Setting to nil VS Not Setting?
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