Invariant for default construction

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 19 23:49:25 PST 2014


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


More information about the Digitalmars-d mailing list