Proposal: GC and "delete"

Sean Kelly sean at invisibleduck.org
Sun Apr 6 10:24:27 PDT 2008


== Quote from Brian White (bcwhite at pobox.com)'s article
> Would it be possible to add a lightweight flag to the GC module to
> detect if the GC was currently running?  That would allow an object to
> conditionally delete sub-objects only if it was safe to do so (i.e. only
> if not being deleted by the GC).
> Alternatively, the "delete" could just do nothing at all during a GC
> pass.  This would probably be the safest solution.

This could be done in Tango via the collectHandler.  Check out tango.core.Runtime.


Sean



More information about the Digitalmars-d mailing list