Summary: std.algorithm.joiner breaks when used with
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from William Moore <> 2012-05-07 15:37:10 PDT 
When joining InputRangeObject-wrapped values, joiner fails to iterate past the
first Range provided in the RangeofRanges.

import std.range:joiner,ElementType,InputRange,inputRangeObject;
import std.conv:to;
import std.stdio:writefln;
void main() {
    auto r = joiner([inputRangeObject("ab"), inputRangeObject("cd")]);
    writefln("%s", to!string(r));

When this is run, the only output is "ab", not "abcd" as expected.

It's entirely possible that it's that's causing the problem as
well.  I haven't dug deep enough into Phobos to know for sure.

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

Reply via email to