What's the deal with "Warning: explicit element-wise assignment..."

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 08:50:12 PDT 2014


On 4/30/14, 5:58 AM, Andrej Mitrovic via Digitalmars-d wrote:
> On 4/30/14, Andrei Alexandrescu via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On 4/29/14, 11:08 AM, bearophile wrote:
>>> In Phobos there are awkward names like walkLength
>>
>> Love it. -- Andrei
>
> std.algorithm.count also works with any input range, they can use that
> if they don't like walkLength. Unless it has some limitations? I can't
> think of any.

Yah, they overlap in functionality but only somewhat. walkLength is O(1) 
on ranges with length, and it allows a convenient "up to" parameter.

Andrei




More information about the Digitalmars-d mailing list