minor
Jarrett Billingsley
kb3ctd2 at yahoo.com
Fri Feb 24 12:29:15 PST 2006
"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message
news:dtnq6q$h80$1 at digitaldaemon.com...
> "bobef" <bobef at lessequal.com> wrote in message
> news:dtmn97$154e$1 at digitaldaemon.com...
>> ============= a.d ================
>>
>> import std.string;
>>
>> void main()
>> {
>> char[] a=std.string.toString(cast(long)(1),16); //error
>> char[] b=std.string.toString(cast(long)(1),cast(uint)16); //no error
>> }
>>
>> /*
>> a.d(5): function std.string.toString called with argument types:
>> (long,int)
>> matches both:
>> std.string.toString(long,uint)
>> and:
>> std.string.toString(ulong,uint)
>> */
BTW, you can just use 16u as the radix in this case instead of cast(uint)16.
More information about the Digitalmars-d-bugs
mailing list