[Issue 13586] Destructors not run when argument list evaluation throws

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 9 13:00:10 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13586

--- Comment #6 from monarchdodra at gmail.com ---
(In reply to Andrei Alexandrescu from comment #5)
> (In reply to Walter Bright from comment #3)
> > (In reply to Sobirari Muhomori from comment #1)
> > > Shouldn't the argument be destructed by the caller when the callee returns?
> > 
> > Yes. Once the function gets called, it gets marked by the compiler as "don't
> > destroy this".
> 
> Wait, I'm confused. On the normal path (no exceptions) isn't the callee
> destroying its by-value arguments?

I think Walter missunderstood the question, as his answer seems to mean what
you just said (the opposite of the original question).

Walter?

--


More information about the Digitalmars-d-bugs mailing list