Improving DIP74: functions borrow by default, retain only if needed

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 27 15:11:55 PST 2015


On Friday, 27 February 2015 at 23:06:26 UTC, Andrei Alexandrescu 
wrote:
> On 2/27/15 2:46 PM, Michel Fortin wrote:
>> On 2015-02-27 21:33:51 +0000, Steven Schveighoffer said:
>>
>>> I believe autorelease pools are not needed for ARC, but are 
>>> maintained
>>> because much Objective-C code contains MRC, and that protocol 
>>> needs to
>>> be supported.
>>
>> Exactly.
>
> OK, so at least in theory autorelease pools are not necessary 
> for getting ARC to work? -- Andrei

ARC need them, this is part of the spec. You can have good RC 
without them IMO.


More information about the Digitalmars-d mailing list