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

           Summary: std.conv: range-to-integer conversion is broken.
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hanaz...@gmail.com


--- Comment #0 from Kasumi HANAZUKI <k.hanaz...@gmail.com> 2009-09-07 04:17:56 
PDT ---
Created an attachment (id=446)
patch

std.conv.parse!int only works with char ranges but not wchar nor dchar,
and should advance the given range.

----------

import std.conv, std.range;

void main() {
    auto r = take(6, "123 45"d);
    assert(parse!int(r) == 123);
    assert(r.front == ' ');
}

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

Reply via email to