[Issue 8764] New: chunks.transposed causes infinite ranges.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 5 07:07:04 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8764

           Summary: chunks.transposed causes infinite ranges.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: simen.kjaras at gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2012-10-05 06:55:12 PDT ---
import std.range;
import std.stdio : writeln;

void main( ) {
    ulong[1] t0;
    auto t1 = t0[].chunks(1).transposed;
    writeln(t1);
}

The above code spews out a never-ending string of [0]s.

Add a very simple .array before .transposed, and things work perfectly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list