The GC, destructors, exceptions and memory corruption
Vladimir Panteleev
vladimir at thecybershadow.net
Fri May 13 23:47:30 PDT 2011
On Fri, 13 May 2011 17:01:56 +0300, dsimcha <dsimcha at yahoo.com> wrote:
> == Quote from Don (nospam at nospam.com)'s article
>> Yeah. It's pretty hard to come up with a use case for a finalizer.
>
> This is why I'm so interested in improving D's GC yet have shown so
> little
> interest in this bug. I can't even figure out what finalizers are for
> and
> basically never use them. Even in the cases where I have used them
> before to get
> around false pointer issues, I now realize that such uses were actually
> latent
> race conditions.
In my case, it was mainly because D1 has no struct destructors.
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list