Destructor/Finalizer Guarantees

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 11 15:10:11 PST 2014


There is an issue with structs that are directly allocated on 
heap - destructors are never called for those. You will want to 
change those into classes for GC to do at least something about 
it.

See also this bug report : 
https://issues.dlang.org/show_bug.cgi?id=2834


More information about the Digitalmars-d-learn mailing list