On 2013-11-15 14:02:20 +0000, Jacob Carlborg <d...@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.for...@michelf.ca
http://michelf.ca