Bug 3800 – "Foreach over Structs and Classes with Ranges" and "Invariant Struct" in D2 Spec

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-02-14T03:10:00Z
Last change time
2015-06-09T01:27:41Z
Keywords
spec
Assigned to
andrei
Creator
repeatedly

Comments

Comment #0 by repeatedly — 2010-02-14T03:10:26Z
I noticed two invalid documentations. 1. "Foreach over Structs and Classes with Ranges" section in statement.html I think "Foreach Range Properties" table is old. Current properties are below. .next -> .popFront .retreat -> .popBack .head -> .front .toe -> .back 2. "Const and Invariant Structs" in struct.html Invariant -> Immutable
Comment #1 by hoganmeier — 2010-07-29T17:07:53Z
Well the table is correct atm but the code examples are still outdated. http://digitalmars.com/d/2.0/statement.html#foreach_with_ranges
Comment #2 by kennytm — 2011-05-02T14:25:07Z
*** Issue 4649 has been marked as a duplicate of this issue. ***
Comment #3 by github-bugzilla — 2012-01-23T14:50:43Z
Comment #4 by andrei — 2012-01-23T15:12:35Z
resynced