[Issue 3303] New: std.conv: range-to-integer conversion is broken.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 7 04:17:57 PDT 2009
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: nobody at puremagic.com
ReportedBy: k.hanazuki at gmail.com
--- Comment #0 from Kasumi HANAZUKI <k.hanazuki at 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: -------
More information about the Digitalmars-d-bugs
mailing list