Compile-time int-to-string conversion

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Wed May 6 03:44:47 PDT 2009


bearophile wrote:
> Lars T. Kyllingstad:
>> How can one, in D2, at compile time, convert an integer value (or any 
>> other type, for that matter) to a string?
> 
> std.metastrings.ToString or std.metastrings.Format, but in D2 that Format is buggy.
> 
> Bye,
> bearophile

Thank you. ToString did the job. :) I'm currently in the process of 
switching to D2, and after having used only D1+Tango before I am still 
learning my way around Phobos.

-Lars


More information about the Digitalmars-d-learn mailing list