Is there any special reason why conv.to doesn't work with radixes, and we have to use parse instead?
import std.conv;
import std.stdio;
void main()
{
writeln(parse!int("ff", 16)); // ok
writeln(to!int("ff", 16)); // NG
}
Is there any special reason why conv.to doesn't work with radixes, and we have to use parse instead?
import std.conv;
import std.stdio;
void main()
{
writeln(parse!int("ff", 16)); // ok
writeln(to!int("ff", 16)); // NG
}