On 2014-11-19 21:08, Steven Schveighoffer wrote:

We really *REALLY* need a mechanism to determine whether destruction is
happening in a GC or not. In synchronous destruction (i.e. destroy or
scoped), you can run the invariant. In GC, you cannot.

Tango for D1 had that. A new method, "dispose", on Object was added. This was called when an object was deleted via "delete" or when it was declared as "scope" and went out of scope.

--
/Jacob Carlborg

Reply via email to