www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.string oversight: more radix toString functions

For some reason, there are only custom-radix toString() functions defined 
for long and ulong.  This causes an ambiguity when you try to call 
toString() on something like an int, and it also causes things to be output 
with far more digits than expected (try toString(cast(long)-1,16u) - 
FFFFFFFFFFFFFFFF!).

Is there any reason why there weren't versions for [u]int, [u]short, and 
[u]byte written? 
May 11 2005