www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4100] New: Break and continue to label should mention foreach

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4100

           Summary: Break and continue to label should mention foreach
           Product: D
           Version: 2.041
          Platform: All
               URL: http://digitalmars.com/d/2.0/statement.html#BreakState
                    ment
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody puremagic.com
        ReportedBy: jlquinn optonline.net


--- Comment #0 from Jerry Quinn <jlquinn optonline.net> 2010-04-17 10:55:19 PDT
---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 17 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4100


Ellery Newcomer <ellery-newcomer utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer utulsa.edu


--- Comment #1 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2010-04-17
12:24:56 PDT ---
(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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 17 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4100



--- Comment #2 from Jerry Quinn <jlquinn 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: -------
Apr 17 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4100


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com


--- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2010-05-05
10:56:28 PDT ---
changeset 1497

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4100


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #4 from Don <clugdbug yahoo.com.au> 2010-05-18 12:18:59 PDT ---
Fixed DMD1.061 and DMD2.046.

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