What is going on here?
digitalmars-d at puremagic.com
Wed Mar 4 12:37:18 PST 2015
On Wednesday, 4 March 2015 at 19:36:20 UTC, Ali Çehreli wrote:
> On 03/04/2015 07:43 AM, Steven Schveighoffer wrote:
>> On 3/4/15 8:43 AM, Shachar Shemesh wrote:
>>> I'd expect A's destructor to run, which does not seem to be
>>> the case.
>> I believe destructors are not run when you throw inside a
>> So plan to deallocate if the ctor throws:
>> a = A(var + 1);
>> scope(failure) destroy(a);
> I don't want that. :)
Then vote here :-P
More information about the Digitalmars-d