How to make a formatted string ?

Gabriel Laskar gabriel at lse.epita.fr
Wed Mar 17 07:54:15 PDT 2010


On 03/17/2010 02:58 PM, Lars T. Kyllingstad wrote:
> char[][] a = ["hello %s %s world".dup, "foo".dup, "bar".dup];
> string fmt = format(a[0], a[1 .. $]);
> // fmt is now "hello foo bar world"

thats perfect, thanks

__
Gabriel Laskar <gabriel at lse.epita.fr0>


More information about the Digitalmars-d-learn mailing list