[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 5.1 feature list
- From: Doug Rogers <rogers@...>
- Date: Mon, 21 Jun 2004 11:34:48 -0400
On Monday 21 June 2004 01:44, Jeff wrote:
> but about the only thing I ever find myself "wanting" is bitwise
> operations and hex literals.
Yep, same here.
I have a patch for the hexadecimal stuff - number and string literals. I
haven't yet modified the core to add bitwise operations (&, |, ^), though I
have a module that will do it for arbitrary strings of bits (using +, * and
^, plus unary -). There's also bit.band(), etc., in Reuben Thomas's library.
But it would be so much nicer for the core to support it.
I think a lot of the problem comes from the single Lua numeric type, which is
usually a double. Lua is simple, and keeping it simple is one of the chores
of the community. So we may be stuck with patches for our special purpose
needs, no matter how general we may think they are.
Let me know if you ever add bitwise operators to the core, and I'll do the
Doug Rogers - ICI - V:703.893.2007x220 www.innocon.com