Re: ARC and autorelease pools
Re: ARC and autorelease pools
- Subject: Re: ARC and autorelease pools
- From: Marcel Weiher <email@hidden>
- Date: Mon, 17 Feb 2014 09:08:10 +0100
On Feb 17, 2014, at 2:08 , Clark Smith Cox III <email@hidden> wrote:
>> I didn't say take them out. I said why do they need to return an autoreleased object.
>
> Because they always have, and their semantics cannot be changed without breaking decades worth of non-ARC code.
Sort of like the way GC did, where you had to have 2 versions of every framework, the GC version and the non-GC version. If you had 2 versions of every framework and the compiler enforced a no autorelease rule, then you could have what you want.
However, one of the big points of ARC was to not require 2 versions of every framework, but instead provide compatibility between ARC and non-ARC code. Therefore all the old requirements for autorelease, which have been explained so well by various posters, apply.
Cheers,
Marcel
_______________________________________________
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