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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 9 07:42:19 PDT 2014


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

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at erdani.com

--- Comment #5 from Andrei Alexandrescu <andrei at erdani.com> ---
(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?

--


More information about the Digitalmars-d-bugs mailing list