[Issue 9797] New: to!int() cannot convert hexadecimal numbers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 23 10:14:26 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9797
Summary: to!int() cannot convert hexadecimal numbers
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: kodlists-dlang at yahoo.com
--- Comment #0 from Sarath Kumar Kodali <kodlists-dlang at yahoo.com> 2013-03-23 10:14:23 PDT ---
$ cat conv_bug.d
import std.conv;
void main()
{
auto var = to!int("0x123");
}
$ rdmd conv_bug.d
std.conv.ConvException@/usr/include/dmd/phobos/std/conv.d(1612): Unexpected 'x'
when converting from type string to type int
--
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