Clean way to tell whether a destructor is called by the GC
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 13 04:24:08 PDT 2015
On Tuesday, 12 May 2015 at 12:53:59 UTC, ponce wrote:
> I already have such a dispose() function.
> The problem is that to support Unique! and scoped! and friends,
> the destructor must call dispose(). Thus my need for a way to
> separate the GC-induced destructors within dispose() or ~this
> (same problem).
Maybe it's simpler to copy-paste Unique and scoped and modify
them to handle disposable objects?
More information about the Digitalmars-d-learn
mailing list