I hate class destructors with a burning passion
Ogi
ogion.art at gmail.com
Mon Jun 7 10:28:32 UTC 2021
On Sunday, 6 June 2021 at 19:00:48 UTC, Guillaume Piolat wrote:
>> Two first issues can be avoided by not letting the GC call
>> class destructors, and call them deterministically instead.
>
> Also, you knew it was coming:
> http://p0nce.github.io/d-idioms/#GC-proof-resource-class
>
> is all you need and has been an existing solution for 6 years.
Conventions do not scale.
More information about the Digitalmars-d
mailing list