toString not working...

Orgoton orgoton at mindless.com
Mon Jan 15 09:46:05 PST 2007


I have

ushort number=1092;
char[] text="Some text " ~ number.toString();

it doesn't compile because presumably ushort has no property called "toString"
yet on digitalmars.com/d it says that toString is defined on class "object"
and every type inherits from this object. Any ideas?



More information about the Digitalmars-d mailing list