lua-users home
lua-l archive

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

On Thu, Feb 5, 2009 at 6:35 PM, Luiz Henrique de Figueiredo
<> wrote:
>> > I like it, its nice for bit fields, and it would be nice to have a %b
>> > string.format specifier, too.
>> I would love to see this in Lua 5.2.
> sprintf does not support %b so it's unlikely that it'll be added...
> (or does C99 sprintf support binary output?)

No, %b is not supported by sprintf.  I think output is a different
problem than input, however; the 0b prefix for reading binary literals
(the original proposal) would still be a nice change.