Are D classes proper reference types?

Adam D Ruppe destructionator at gmail.com
Thu Jun 24 12:03:41 UTC 2021


On Thursday, 24 June 2021 at 07:28:56 UTC, kinke wrote:
> *scope* classes are deprecated (I don't think I've ever seen 
> one);

I used it for my database thing where it is supposed to be 
destroyed reliably but also uses runtime polymorphism.

I now suggest people just stick `scope(exit) .destroy(obj);` any 
time you use it.


More information about the Digitalmars-d-learn mailing list