Destructors vs. Finalizers

Dgame via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 26 10:38:28 PDT 2017


I don't get it. The GC collects the objects which aren't in use 
anymore. The order in which this is currently happening is not 
specified. So, how are the destructors supposed to be called in 
the right order? Manually? ARC? As far as I understand it, the GC 
can't do it, otherwise we wouldn't have the "random" order in 
which the finalizer are called in the first place.


More information about the Digitalmars-d mailing list