How to make a formatted string ?

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Wed Mar 17 06:12:53 PDT 2010


Gabriel Laskar wrote:
> I have also found std.string.format, but it seems to fail also.

I forgot to mention:  std.string.format() works if you use a correct 
format specification.

   string msg = format("hello: %s", 42);

It doesn't seem to support positional parameters, though.

-Lars


More information about the Digitalmars-d-learn mailing list