On Mon, 17 Feb 2014 15:12:39 -0500, Jacob Carlborg <d...@me.com> wrote:

On 2014-02-16 21:51, Steven Schveighoffer wrote:

Right, but there is no obligation to follow this pattern. One is free to
just not do anything, and the GC will clean up your garbage.

I was replying to the issue that it's not possible to know in the destructor of a class if it's destroyed by the GC or by delete/scope. With Object.dispose in D1 Tango it is possible.

Yes, and one can do it with a global flag too. The lack of this ability is really a terrible omission for D2.


Reply via email to