[Issue 7835] Ignored break inside static foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 6 10:06:19 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7835



--- Comment #3 from bearophile_hugs at eml.cc 2012-04-06 10:06:56 PDT ---
(In reply to comment #2)
> Not a bug. break applies to the innermost statement that can be broken out
> from. This includes foreach.
> 
> (I use this idiom often. Use labeled break to break from the switch.)

You are right, thank you.
(My error was to think that "static foreach" doesn't support break.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list