[Issue 1905] New: foreach docs inconsistency

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 11 05:12:12 PDT 2008


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 at digitalmars.com
        ReportedBy: jlquinn at 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.


-- 



More information about the Digitalmars-d-bugs mailing list