[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] BinDecHex.lua bitwise operators in Lua
- From: "Tim Kelly" <gtkelly@...>
- Date: Tue, 30 Oct 2007 20:40:22 +0100 (CET)
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