[Issue 13586] Destructors not run when argument list evaluation throws
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Oct 18 02:41:19 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13586
--- Comment #11 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Sobirari Muhomori from comment #10)
> (In reply to Andrei Alexandrescu from comment #5)
> > Wait, I'm confused. On the normal path (no exceptions) isn't the callee
> > destroying its by-value arguments?
>
> Huh? Why not caller?
Because the caller can transfer ownership to the callee. If the callee never
destructed its parameters, this could not be done.
--
More information about the Digitalmars-d-bugs
mailing list