Re: self = [super init], nil?
Re: self = [super init], nil?
- Subject: Re: self = [super init], nil?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 10 May 2010 23:39:43 +0200
Le 10 mai 2010 à 22:24, David Duncan a écrit :
> On May 10, 2010, at 1:18 PM, Henry McGilton wrote:
>
>> Hi Scott. Is there any rationale for the change? Or just Evolution In Action?
>
> I would imagine the biggest reason for the change is that if(self = [super init]) causes a warning for some project settings.
>
Fortunately for people who like this old syntax, clang is smart enough to know the "if (self = [super initXXX])" is an usual construct and to not emit warning in this case when -Wparentheses is used :-)
-- Jean-Daniel
_______________________________________________
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