lua-users home
lua-l archive

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


Olivier Hamel wrote:
> Idly browsing the internet I found a Lua module which said LuaJIT2 would  
> have built in bitwise ops:  
> [URL deleted]

The official URL is: http://bitop.luajit.org/

> Does anyone know if they're still planned and if there are metaoperators  
> for them as well, or if they've been cut in favour of vanilla Lua?
> Or was this page entirely incorrect to begin with?

Yes, LuaJIT 2.x will have them built-in and will happily compile
and optimize all bitwise operations.

Note that it says "bitwise operations" everywhere, i.e. functions
like bit.band(). Nowhere does it say "operators", so of course
there's no overloading. Consider using descriptive method names.

--Mike