Can std.conv.toImpl please be deprecated
Marc Schütz via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 17 02:35:53 PDT 2016
On Sunday, 17 April 2016 at 09:22:21 UTC, WebFreak001 wrote:
> you need to use toImpl if you want to convert a number to/from
> a specific base! I use that a lot when converting hexadecimal
> values
No, the documentation just gives that impression. This works:
void main(string[] args) {
import std.conv;
import std.stdio;
writeln(args[1].to!int(10).to!string(16));
}
More information about the Digitalmars-d
mailing list