class destruction

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 9 09:28:47 PDT 2015


On Wednesday, 9 September 2015 at 15:37:50 UTC, Q wrote:
> Yes, but according to the specs it is not guaranteed that the 
> GC calls the DTor if the Object is collected.

Note that I believe this is the same as in Java (though not C#, 
interestingly enough). In Java an object's destructor is not 
guaranteed to run.


More information about the Digitalmars-d-learn mailing list