Ranges in std.range vs foreach ranges
retard
re at tard.com.invalid
Thu Dec 17 05:06:02 PST 2009
Thu, 17 Dec 2009 11:13:29 +0100, Lars T. Kyllingstad wrote:
> 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.
To be more precise, I think the official distribution of the dmd binary
is the specification, the sources might not behave in the same way and
may lack the release tags in the vcs :o) To be sure, I recommend using
objdump.
More information about the Digitalmars-d
mailing list