Summary: hasLength!iota is false
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos

--- Comment #0 from David Simcha <> 2011-04-26 06:19:17 PDT ---
With the latest SVN versions of Phobos and DMD the following static assert

import std.range;

void main() {
    auto myIota = iota(1000);
    static assert(hasLength!(typeof(myIota)));

IMHO this is a blocker for releasing 2.053 because iota is very frequently used
with parallel foreach loops and parallel foreach is much less efficient if
iterating over a range without a length.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to