[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [PATCH] allow binary coded literals
- From: Farmbuyer <farmbuyer@...>
- Date: Sun, 8 Feb 2009 18:30:45 -0500
On Thu, Feb 5, 2009 at 6:35 PM, Luiz Henrique de Figueiredo
>> > 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.