Destructor called while object is still alive
Steven Schveighoffer
schveiguy at gmail.com
Sat Oct 24 12:07:17 UTC 2020
On 10/24/20 8:01 AM, Guillaume Piolat wrote:
> Not that the very-much-unused "GC Proof Resource Class"[1] idiom turns
> the GC into a detector for... overreliance on the GC for freeing resources.
>
> [1] http://p0nce.github.io/d-idioms/#GC-proof-resource-class
Please update this:
https://dlang.org/phobos/core_memory.html#.GC.inFinalizer
-Steve
More information about the Digitalmars-d
mailing list