[Issue 7835] Ignored break inside static foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 6 07:38:18 PDT 2012


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


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |timon.gehr at gmx.ch
         Resolution|                            |INVALID


--- Comment #2 from timon.gehr at gmx.ch 2012-04-06 07:38:55 PDT ---
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.)

Please reopen as enhancement if you think the code should be illegal.

-- 
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