Can't I allocate at descontructor?

Guillaume Piolat first.name at spam.org
Sun Mar 7 12:54:20 UTC 2021


On Friday, 5 March 2021 at 20:28:58 UTC, Ali Çehreli wrote:
> To my surprise, even though 'c' is not null below, the 
> destructor is not executed multiple times.
>

Hence why 
https://p0nce.github.io/d-idioms/#GC-proof-resource-class works 
as a detector of undeterminism.




More information about the Digitalmars-d-learn mailing list