[Issue 4100] Break and continue to label should mention foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 17 13:27:34 PDT 2010


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



--- Comment #2 from Jerry Quinn <jlquinn at optonline.net> 2010-04-17 13:27:29 PDT ---
(In reply to comment #1)
> (In reply to comment #0)
> > Both break and continue can branch to a label, but the text only mentions for,
> > while, and do loops.  Foreach loops should also be included.  Dmd supports it.
> 
> It's mentioned just above the switch statement

The text for ContinueStatement is:

If continue is followed by Identifier, the Identifier must be the label of an
enclosing while, for, or do loop, and the next iteration of that loop is
executed. It is an error if there is no such statement.

It doesn't mention foreach and it should.  Ditto with BreakStatement.

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