Notes from C++ static analysis
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Jun 26 21:20:48 PDT 2013
On Thu, Jun 27, 2013 at 01:56:31PM +1000, Peter Williams wrote:
[...]
> While you're fixing it can you modify it so that the format string
> can specify the order in which the arguments are replaced? This is
> very important for i18n. I apologize if it can already do this but
> I was unable to find any documentation of format()'s format string
> other than examples with %s at the appropriate places.
[...]
You can use positional arguments for this purpose. For example:
writefln("%2$s %1$s", "a", "b");
outputs "b a".
T
--
The easy way is the wrong way, and the hard way is the stupid way. Pick one.
More information about the Digitalmars-d
mailing list