Re: Memory management on returning nil in init
Re: Memory management on returning nil in init
- Subject: Re: Memory management on returning nil in init
- From: Charles Srstka <email@hidden>
- Date: Wed, 23 Jun 2010 15:27:24 -0500
On Jun 23, 2010, at 3:00 PM, Jens Alfke wrote:
> Yes. Any expression of the form
>
> if(A = B)
>
> i.e. an assignment directly inside an if, will result in a warning that this looks confusingly like a comparison.
If you prefer the if(A = B) syntax, though, this can be worked around by using double parentheses, i.e.
if((A = B))
Charles_______________________________________________
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