Things that keep D from evolving?

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 6 09:46:48 PST 2016


On Saturday, 6 February 2016 at 17:46:00 UTC, Ola Fosheim Grøstad 
wrote:
> On Saturday, 6 February 2016 at 17:38:30 UTC, rsw0x wrote:
>> Can't be done with the root class because classes never 
>> trigger RAII outside of (deprecated) scope allocations.
>
> Not sure what you mean. The class instance doesn't have to 
> trigger anything?
>
> You "retain(instance)" to increase the refcount and 
> "release(instance)" to decrease refcount or destroy the 
> instance.

Might as well manually free and delete instead.


More information about the Digitalmars-d-learn mailing list