From http://digitalmars.com/d/2.0/statement.html#ForeachStatement,
> "Foreach over Structs and Classes with Ranges".
>
> I read this as the Range design is a part of the language now. Is this
> correct?
>
> And is the spec a bit out of date in the examples?
> It says foreach-/reverse translates to
>
> for( auto __r = range; !__r.empty; __r.next /* or __r.retreat */)
> auto e = __r.head; // or __r.toe
>
> Should this be the following?
> for( auto __r = range; !__r.empty; __r.popFront /* or __r.popBack */)
> auto e = __r.front; // or __r.back
Comment #1 by braddr — 2010-08-15T15:08:10Z
Um.. moving out of the puremagic.com product.
Comment #2 by simendsjo — 2010-08-15T15:15:35Z
(In reply to comment #1)
> Um.. moving out of the puremagic.com product.
Oh, sorry. Wrong bugtracker.. Did you move the post, or 're'move the post?
Comment #3 by kennytm — 2011-05-02T14:25:07Z
*** This issue has been marked as a duplicate of issue 3800 ***