November 23, 2011 [Issue 6992] New: Implement radix conversion for std.conv.to | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6992 Summary: Implement radix conversion for std.conv.to Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-11-22 20:21:40 PST --- import std.conv; import std.stdio; void main() { writeln(parse!int("ff", 16)); // ok writeln(to!int("ff", 16)); // NG } parse works ok with literals, but not with strings: string get() { return "ff"; } void main() { writeln(parse!int(get(), 16)); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 14, 2011 [Issue 6992] Implement radix conversion for std.conv.to | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6992 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Platform|Other |All Resolution| |DUPLICATE OS/Version|Windows |All --- Comment #1 from yebblies <yebblies@gmail.com> 2011-12-14 13:25:17 EST --- parse only works with string literals due to bug 4539. Also, you already filed this bug in July. *** This issue has been marked as a duplicate of issue 6255 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation