D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3800 - "Foreach over Structs and Classes with Ranges" and "Invariant Struct" in D2 Spec
Summary: "Foreach over Structs and Classes with Ranges" and "Invariant Struct" in D2 Spec
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 minor
Assignee: Andrei Alexandrescu
URL:
Keywords: spec
: 4649 (view as issue list)
Depends on:
Blocks:
 
Reported: 2010-02-14 03:10 UTC by Masahiro Nakagawa
Modified: 2015-06-09 01:27 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Masahiro Nakagawa 2010-02-14 03:10:26 UTC
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 Trass3r 2010-07-29 17:07:53 UTC
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 kennytm 2011-05-02 14:25:07 UTC
*** Issue 4649 has been marked as a duplicate of this issue. ***
Comment 3 github-bugzilla 2012-01-23 14:50:43 UTC
Commit pushed to https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/baa8b09e9f34d25d5412f029e94074bc972213af
fix Issue 3800 - 'Foreach over Structs and Classes with Ranges' and 'Invariant Struct' in D2 Spec
Comment 4 Andrei Alexandrescu 2012-01-23 15:12:35 UTC
resynced