lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo" <lhf@tecgraf.puc-rio.br> wrote:

> Perhaps I'm missing something, but the conversions dec <-> hex <-> bin
> can be performed efficiently by tonumber.

The results from the conversions in BinDecHex are strings, instead of
numbers.  This has made table lookups in Lua much easier (opcodes, e.g.). 
If there were integrated bitwise operators in Lua, then I would have stuck
with numbers.

tim