Jonathan M Davis wrote:
The set of properties defined for foreach ranges in the online docs ( http://www.digitalmars.com/d/2.0/statement.html ) does not match those of the ranges in std.range.

According to the online docs, foreach requires ranges to have

empty
next
retreat
head
toe

while the corresponding properties in std.range would be

empty
popFront
popBack
front
back


Is this because one or the other is not up-to-date? I would assume that we'd want the two to match up.

- Jonathan M Davis


With D2, the implementation is the real specification. :) The online docs aren't always up-to-date.

-Lars

Reply via email to