On Thursday, 5 March 2015 at 00:03:37 UTC, Jakob Ovrum wrote:
On Wednesday, 4 March 2015 at 20:37:20 UTC, Marc Schütz wrote:
On Wednesday, 4 March 2015 at 19:36:20 UTC, Ali Çehreli wrote:
On 03/04/2015 07:43 AM, Steven Schveighoffer wrote:
I believe destructors are not run when you throw inside a constructor.
So plan to deallocate if the ctor throws:

a = A(var + 1);
scope(failure) destroy(a);

-Steve

I don't want that. :)


Then vote here :-P
https://issues.dlang.org/show_bug.cgi?id=14246

Added my vote. The construction heuristic needs to become more sophisticated and well-defined anyway.

Would be nice if votes on bugzilla mattered, like putting highly voted opened bugs on the front page of dlang.org.

Reply via email to