The GC, destructors, exceptions and memory corruption
Robert Jacques
sandford at jhu.edu
Fri May 13 21:50:19 PDT 2011
On Fri, 13 May 2011 10:01:56 -0400, 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.
I use the finalizers of proxy classes to manage GPU memory.
More information about the Digitalmars-d
mailing list