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

Michel Fortin via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 27 18:55:14 PST 2015


On 2015-02-27 23:11:55 +0000, deadalnix said:

> On Friday, 27 February 2015 at 23:06:26 UTC, Andrei Alexandrescu wrote:
>> 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.

Apple's ARC needs autorelease pools to interact with Objective-C code. 
But if by ARC you just mean what the acronym stands for -- automatic 
reference counting -- there's no need for autorelease pools to 
implement ARC.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list