[Issue 23472] scope(sucess) generate exception handling code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 9 16:39:47 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23472
--- Comment #2 from deadalnix <deadalnix at gmail.com> ---
`__os2` can only be false if no exception was thrown. There is no reason to
emit any exception handling code in such function, even in the instances where
the bound check might fail.
In fact, the whole point of scope success is "run this when the scope is exited
using regular control flow rather than exception handling", so there is no
reason to emit any exception handling code ever when dealing with
scope(success).
--
More information about the Digitalmars-d-bugs
mailing list