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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 9 02:11:29 PDT 2014


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

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
(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".

> So it couldn't be constructed in place anyway.

--


More information about the Digitalmars-d-bugs mailing list