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

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


On 4/30/14, 6:18 AM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> On Wednesday, 30 April 2014 at 11:52:14 UTC, Dicebot wrote:
>> And that would have been quite a close guess actually as walkLength is
>> constrained to accept only finite InputRanges :) "walk" here implies
>> iteration and iteration implies O(n).
>
> The common term is "count", "countNodes", "countElements" etc... Why all
> the specialized functions in algorithm.d? Why not just have a default
> predicate that is always true and do compile time optimizations?

That would be an awful idea. -- Andrei



More information about the Digitalmars-d mailing list