Lars T. Kyllingstad wrote:
Looks like you ran into a piece of hopelessly outdated documentation.
The correct names are, in the same order:
Thanks, I'll fix.
On the D2 online pages
(http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement)there
is
Foreach over Structs and Classes with Ranges
My question is , is there a working example of foreach ( e ; range )?
Iteration over struct and class objects can be done with ranges, which
Michael Rynn wrote:
On the D2 online pages
(http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement)there
is
Foreach over Structs and Classes with Ranges
My question is , is there a working example of foreach ( e ; range )?
Iteration over struct and class objects can be done
Lars T. Kyllingstad wrote:
Michael Rynn wrote:
On the D2 online pages
(http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement)there
is
Foreach over Structs and Classes with Ranges
My question is , is there a working example of foreach ( e ; range )?
Iteration over struct and
Good range documentation comes from:
http://digitalmars.com/d/2.0/phobos/std_range.html
foreach only requires an Input Range.