Bounty for -minimal compiler flag

Steven Schveighoffer schveiguy at yahoo.com
Mon Feb 17 18:24:32 PST 2014


On Mon, 17 Feb 2014 15:12:39 -0500, Jacob Carlborg <doob at 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.

-Steve


More information about the Digitalmars-d-announce mailing list