[Issue 13586] Destructors not run when argument list evaluation throws
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Oct 26 03:45:44 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13586
--- Comment #14 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
(In reply to Walter Bright from comment #11)
> Because the caller can transfer ownership to the callee. If the callee never
> destructed its parameters, this could not be done.
If transfer of ownership makes things messy, it's better to not do that. Is
there a reason, why the caller can't keep ownership to itself?
--
More information about the Digitalmars-d-bugs
mailing list