|
suppose I wanted to make a bit64 library with Lua 5.3 and
LuaJIT implementationsUsing a "bit64" library in Lua 5.3function bit64.bor(a,b) return a|b endwould be 10 times slower than native 5.3 code.The only sane way I see to make a script for both
Lua 5.3 and LuaJIT is to include two versions of the script
in one lua file and choose version-specific branch in runtime.