lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> printf("%2$s %1$s\n", "world!", "Hello");  /* prints "Hello world!\n" */
> 
> I haven't been able to find any discussion in the archives proposing
> similar behavior for Lua.  Has this been kicked around before?

It was present in Lua from 3.1 till 4.0, but it was removed in 5.0.

http://www.lua.org/manual/3.1/manual.html#format
http://www.lua.org/manual/3.2/manual.html#format
http://www.lua.org/manual/4.0/manual.html#format

See "Incompatibilities with version 4.0"/"Changes in the Libraries" in
	http://www.lua.org/manual/5.0/manual.html