More radical ideas about gc and reference counting

Jesse Phillips via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 21:56:18 PDT 2014


On Wednesday, 30 April 2014 at 20:21:33 UTC, Andrei Alexandrescu 
wrote:
> That means classes that need cleanup (either directly or by 
> having fields that are structs with destructors) would need to 
> garner that by other means, such as reference counting or 
> manual. We're considering deprecating ~this() for classes in 
> the future.

I can't claim it should be done, but any time I've thought 
something should go in the destructor I was wrong and would end 
up with a close() or similar function.


More information about the Digitalmars-d mailing list