www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1905] New: foreach docs inconsistency

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

           Summary: foreach docs inconsistency
           Product: D
           Version: unspecified
          Platform: PC
               URL: http://www.digitalmars.com/d/2.0/statement.html#ForeachS
                    tatement
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jlquinn optonline.net


In the docs on the website for foreach, the grammar is specified as follows:

ForeachStatement:
    Foreach (ForeachTypeList; Aggregate) ScopeStatement

However, the text refers to NoScopeNonEmptyStatement, for example:

 The aggregate must be loop invariant, meaning that elements to the aggregate
cannot be added or removed from it in the NoScopeNonEmptyStatement.


-- 
Mar 11 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1905


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.029 and 2.013


-- 
May 11 2008