I hate class destructors with a burning passion
Guillaume Piolat
first.last at gmail.com
Mon Jun 7 13:18:23 UTC 2021
On Monday, 7 June 2021 at 10:28:32 UTC, Ogi wrote:
> 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.
Ignore classic solutions, get classic problems.
More information about the Digitalmars-d
mailing list