You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be compatible with Lua 5.2 this needs changes in both the interpreter and the JIT compiler.
Alternatively, table.insert could be implemented in internal bytecode, just like table.remove. The difficult part is an efficient check for the number of arguments. A fixarg Lua function cannot differentiate f(t,x) from f(t,x,nil), but a vararg function would be very inefficient. Tricky.
The provided snippet will show
__len called
when ran in lua 5.2.luajit does not, which caused me quite a headache. :)
I built
LuaJIT 2.1.0-beta3
with-DLUAJIT_ENABLE_LUA52COMPAT
The text was updated successfully, but these errors were encountered: