Traditional LSL requires bitwise operators quite often: event parameters (
changed
), function call flags (
llRezObjectWithParams
), ...
Lua 5.3 introduced native bitwise operators: https://www.lua.org/manual/5.3/manual.html#3.4.2
Having these usable in SLua would be a significant quality-of-life improvement in the face of Luau's
bit32
library, though the library does still include other very useful features like
btest
,
replace
, etc. The library should stay regardless.
To be fair, Luau's reasoning for not including bitwise operators is decent, but LSL context adds quite a heavy weight on this decision. I don't know the work that would go into implementing these operators, but hopefully they can be implemented in such a way that makes use of the same VM built-ins as the
bit32
library to avoid any performance penalties.