[Issue 23472] scope(sucess) generate exception handling code.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 10 15:04:11 UTC 2022


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

--- Comment #5 from kinke <kinke at gmx.net> ---
Almost - this basically corresponds to what the backend generates for the happy
path without exception, except that the assignments to `ret` need to be
constructions (`TOK.construct`) in order not to break in-place construction of
the return value for non-POD return types.

Such an invasive rewrite should be feasible in the frontend, but would
presumably be quite a bit of work, for little gain IMO.

--


More information about the Digitalmars-d-bugs mailing list