[Issue 10019] New: std.conv numeric parse functions do not work with std.container Array ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 2 12:58:07 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10019
Summary: std.conv numeric parse functions do not work with
std.container Array ranges
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: moebiuspersona at gmail.com
--- Comment #0 from w0rp <moebiuspersona at gmail.com> 2013-05-02 12:58:04 PDT ---
I believe the following ought to work.
auto arr = Array!dchar();
arr ~= "123";
assert(parse!int(arr[]) == 123)
The problem I believe is caused by the range there being an r-value, which
parse does not accept. I have a pull request incoming...
--
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