digitalmars.D.learn - Casting gremlins
- Todd (16/16) Oct 10 2007 In C it was possible to cast a Uint to a Char[], however, I can't seem t...
In C it was possible to cast a Uint to a Char[], however, I can't seem to get it to compile in D. example: I have uint data1; long data; long lblonedata; . . . char[] dataone = cast(char[]) data1; lblonedata = atoi(dataone); I'm importing std.string, std.conv; and get e2ir: cannot cast uint to char[] I was using dmd 1.022 and switched to 2.x today with no help. Does D use a different method? or I'm I missing something obvious? Todd 'newest newbee'
Oct 10 2007