lua-users home
lua-l archive

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


2011/11/2 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>
> the bit32 library is meant to make bit manipulation possible in Lua, not to make it fast.
>

That is an important point.  But the point in a previous thread about
operators corresponding to metamethods __and, __or, __xor and __not,
which could be supplied for some objects (arrays were mentioned) fits
in very nicely with their mapping to bit.band, bit.bor, bit.xor and
bit.bnot.  The other bitwise operators (shifts and rotates) do not
appear to be as generally useful.

Dirk