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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 17 02:31:32 PST 2014


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

--- Comment #21 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
(In reply to Andrei Alexandrescu from comment #20)
> C++'s issue with unnecessary copying
I see it as a choice between two suboptimal implementations. The copying
happens because the callee is forced to own its arguments. D already does some
things differently from C++ to be efficient, I think something similar can be
done in this case too.

--


More information about the Digitalmars-d-bugs mailing list