std.string.format

Egor Starostin egorst at gmail.com
Tue Dec 26 22:13:36 PST 2006


> > 1. why
> > writefln(format("%%1.%df",2));
> > produces 'Error: std.format'
> Because the format function returns "%1.2f", so writefln expects an
> extra floating-point argument after that string.
Indeed! Thank you for an explanation.



More information about the Digitalmars-d mailing list