Regarding isSorted

Jos van Uden usenet at fwend.com
Tue Feb 5 22:21:38 PST 2013


On 6-2-2013 1:33, bearophile wrote:

>
> Maybe this line:
>
> https://github.com/D-Programming-Language/phobos/blob/master/std/algorithm.d#L9237
>
>          for (; !ahead.empty; ahead.popFront(), ++i)
>
> Should be:
>
>          for (; !ahead.empty; ahead.popFront(), r.popFront(), ++i)
>

Thought that line looked fishy. But I don't understand half the code in Phobos so I
figured it must be me...



More information about the Digitalmars-d-learn mailing list