Don't expect class destructors to be called at all by the GC

DanielG simpletangent at gmail.com
Wed Jan 31 10:51:10 UTC 2018


On Wednesday, 31 January 2018 at 10:34:53 UTC, Mike Parker wrote:
> delete is deprecated:
>
> https://dlang.org/deprecate.html#delete

Ah, thanks! Actually double-thanks, because my progress through 
your book is what prompted me to search for threads about class 
destructors. The existence of .destroy answers my question 
(namely, "should I just use 'delete', or my own .dispose method, 
for deterministic resource freeing?")


More information about the Digitalmars-d-learn mailing list