[Issue 14887] break in static foreach should apply to outer scope
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Sep 21 10:16:26 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=14887
Mathias Lang <mathias.lang at sociomantic.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mathias.lang at sociomantic.co
| |m
--- Comment #1 from Mathias Lang <mathias.lang at sociomantic.com> ---
I tend to disagree here. The break will happen at runtime and skip the other
iterations of that loop, and to me that's exactly what it should do, even if it
might sound confusing at first.
If anything, we could improve flow analysis to skip this specific code, but
having its behaviour changed would be highly confusing.
--
More information about the Digitalmars-d-bugs
mailing list