Are D classes proper reference types?

kinke noone at nowhere.com
Fri Jun 25 07:17:20 UTC 2021


Wrt. manual non-heap allocations (stack/data segment/emplace 
etc.), you could e.g. reserve the most significant bit of the 
counter to denote such instances and prevent them from being 
free'd (and possibly finalization/destruction too; this would 
need some more thought I suppose).


More information about the Digitalmars-d-learn mailing list