[Issue 13586] Destructors not run when argument list evaluation throws
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Oct 9 02:14:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13586
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to monarchdodra from comment #2)
> Aren't you worried that we'll take a general performance hit building the
> arguments and then moving them every time we make a call?
1. first make it work, then optimize
2. it'll only happen with structs with destructors, so (hopefully) it will be
less common
> Hows does C++ deal with this?
I imagine it's very compiler dependent - there are many ways to do it. I
haven't checked. Why not give it a try? :-)
--
More information about the Digitalmars-d-bugs
mailing list