lua-users home
lua-l archive

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



Wouldn't formatting go before the 'b'?

Anyways, I think the first ("%b") could be useful, the rest would simply add up bloat to documentation, and can be easily done by Lua, and "%s" or "%d".

D Burgess kirjoitti 2.8.2006 kello 4.16:

I just noticed that string.format is missing an option (I think),
namely, a boolean option.

How about -

%b -> "true" or "false"
%bc -> "True" or "False"
%bu -> "TRUE" or "FALSE"
%b0 -> 0 or 1

David B.