Bitwise Operations / BitLib

Hi… I am new and currently porting some prototype code I made a while ago in Python to Corona.

I just found that LUA lacks native support for Bitwise Operations like OR / AND / XOR and BITSHIFTING.

Searching for a solution I found that there are C extensions to LUA which implement them. And implementation in LUA is possible but a BIT (
Is there a chance that you include that with the SDK shortly?

I think it must be fairly easy to add and quick to test as computer love those bitwork :slight_smile: [import]uid: 6928 topic_id: 1122 reply_id: 301122[/import]

I’d like to see this added as well. Right now I use some lua functions for this, but they are slow. Getting full bit support would be very very nice.

Scott [import]uid: 5659 topic_id: 1122 reply_id: 2887[/import]

I am also urgently looking for bitwise operators :frowning:

There are several good libraries and LUA patches available to add bitwise support (see here). Is it possible to add custom libraries and / or patches to the Corona installation in any way (means can they be added or installed afterwards or do we have to wait for Ansca to implement this?)

[import]uid: 9644 topic_id: 1122 reply_id: 31885[/import]