[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT - Bitwise Operators
- From: Mike Pall <mikelu-0909@...>
- Date: Mon, 7 Sep 2009 01:03:47 +0200
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.