Finalizers, Destructors, RAII, GC
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Apr 28 12:58:52 UTC 2021
On Wednesday, 28 April 2021 at 11:13:52 UTC, Guillaume Piolat
wrote:
> 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.
But it is also memory unsafe isn't it?
If @safe is to be a meaningful concept it should at least be
guaranteed for naive users who don't do anything fancy and rely
on the GC for all allocations.
More information about the Digitalmars-d
mailing list