Bug 1905 – foreach docs inconsistency

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2008-03-11T07:12:00Z
Last change time
2015-06-09T05:14:41Z
Assigned to
bugzilla
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2008-03-11T07:12:10Z
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.
Comment #1 by bugzilla — 2008-05-11T04:14:04Z
Fixed dmd 1.029 and 2.013