GC vs Resource management.
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 4 09:13:27 PDT 2014
On 5/4/14, 4:42 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> But I'm afraid your suggestion is unsafe: There also needs to be a way
> to guarantee that no references to the scoped object exist when it is
> destroyed.
Actually, it should be fine to call the destructor, then blast T.init
over the object, while keeping the actual memory in the GC. This
possible approach has come up a number of times, and I think it has
promise. -- Andrei
More information about the Digitalmars-d
mailing list