[Issue 13586] Destructors not run when argument list evaluation throws
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Nov 14 07:42:05 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13586
--- Comment #20 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Sobirari Muhomori from comment #19)
> If the caller owns the arguments, it can also help with issue 12684 and
> similar.
Once the callee gets called, it must own its by-value arguments. That way we
essentially avoid C++'s issue with unnecessary copying (callee copies, call,
caller makes a copy inside, callee destroys the copy) without a costly feature
(C++'s rvalue references).
--
More information about the Digitalmars-d-bugs
mailing list