Cuberite Forum
Bitwise operators - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Bitwise operators (/thread-2497.html)

Pages: 1 2


RE: Bitwise operators - PureTryOut - 09-08-2016

So is anyone willing to do the work to upgrade to Lua 5.2, or will we have to do with some kind of pure Lua implementation for now?


RE: Bitwise operators - NiLSPACE - 09-08-2016

There currently aren't any plans to update Lua because our binding library (tolua++) wouldn't work anymore. There are some alternatives that do support Lua 5.2/5.3, but those don't support all the features we want. (overloading, operators, etc)


RE: Bitwise operators - xoft - 09-08-2016

You'll have to make do with a pure-Lua implementation for now.

Perhaps if you wrote a specification on what the functions should look like, someone could provide an API with implementation in C++.


RE: Bitwise operators - PureTryOut - 09-10-2016

Thanks but no thanks, I'll wait till Lua gets updated to 5.2 Wink

For now I went with a pure Lua implementation, to be more specific, this one. It should even make the plugin compatible with bit32 once Lua is updated.
It seems to work great.