Thanks to @menaechmi @Mathias_Westerdahl @britzl @GooseSwanson
I want to use integers as bitmask, essentially for an ecs module. The ecs works perfectly fine with bit position 0 .. 31 but some errors appear if I use indexes above 31. So I think the bit module used by Defold only works for 32 bit integers as afar as my use case is concerned. Note also that some methods of the bit API here API reference (bit) explicitly limit the bit position to 0 .. 31.
@menaechmi I will try to understand what FFI semantic is.
@GooseSwanson Writing an extension would be indeed a solution. Thanks for the valuable hints!
@britzl Thanks for the link, I will try and see if it works for me.