Finalizers, Destructors, RAII, GC

Guillaume Piolat first.name at spam.org
Wed Apr 28 11:13:52 UTC 2021


On Wednesday, 28 April 2021 at 10:04:20 UTC, Ola Fosheim Grøstad 
wrote:
>
> Or would it be better to simply forbid any cleanup in the GC?

Yes and I think Andrei defended the idea years ago, and it was 
shutdown by the ensuing discussion.

With GC.inFinalizer you can use the GC as a detector of 
accidental correctness, so the current state is not that bad. 
It's just more complicated than needed.


More information about the Digitalmars-d mailing list