[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 5.1 feature list
- From: Jeff <jma@...>
- Date: Mon, 21 Jun 2004 21:11:48 -0500
>> but about the only thing I ever find myself "wanting" is bitwise
>> operations and hex literals.
DR> Yep, same here.
DR> I think a lot of the problem comes from the single Lua numeric type, which is
DR> usually a double. Lua is simple, and keeping it simple is one of the chores
DR> of the community. So we may be stuck with patches for our special purpose
DR> needs, no matter how general we may think they are.
DR> Let me know if you ever add bitwise operators to the core, and I'll do the
Because of the number = double problem, I never added it to the core,
but I did code a simple bit routine library:
Anyone who wants the code is welcome to it, but I'm sure everyone here
could just as easily whip up there own in 10 minutes.
Likewise, one other library that I've used quite often is a sample
[memory] bank library:
Again, anyone who wants the code, just ask. But, if libraries were to
ever be added to Lua 5.1, I personally think hex parsing and the bit
library above would be quite good to add, especially for when Lua is