Ehem, ARM

Michel Fortin michel.fortin at michelf.ca
Fri Nov 15 06:49:39 PST 2013


On 2013-11-15 14:02:20 +0000, Jacob Carlborg <doob at me.com> said:

> On 2013-11-15 14:38, Michel Fortin wrote:
> 
>> You mean if Walter would accept D/Objective-C without ARC? No idea. Ask
>> him, or submit a pull request just to gauge the reaction.
> 
> No, I was referring to just implementing ARC like it's done in Objective-C.

I honestly don't think it can work much differently. You call retain 
and release at the right places. Extending it to other D types is just 
a matter of calling a different functions depending on the type. 
Objective-C has a couple of special cases for pointers to autoreleased 
objects, but that's just a couple more rules to add, and those should 
be kept specific to Objective-C types.

Weak pointers are a more difficult topic, but a separate one I'd say.

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



More information about the Digitalmars-d mailing list