[Issue 11691] New: can't join pathSplitter with pathSeparator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 5 06:13:46 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11691

           Summary: can't join pathSplitter with pathSeparator
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-12-05 06:13:43 PST ---
cat > bug.d << CODE
import std.range, std.path;

void bug()
{
    auto comps = pathSplitter("foo/bar");
    auto path = join(comps, pathSeparator);
}
CODE

dmd -c bug

----

This fails because the element type of PathSplitter
is const(C[]) where it should be const(C)[].

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


More information about the Digitalmars-d-bugs mailing list