Lua/Porting notes

This page shows some migration notes between major versions of Lua.

luaL_getn / luaL_setn
Replace  with  :

completely dropped, is safe to remove it from code.

lua_open
Replace  with  :

luaL_openlib
Lua manual says that this function should be replaced with, which is deprecated in Lua 5.2 too. For universal approach it's better "backport"  and use it as substitution for   and  :

Calls to  and   should be changed according to its second argument. If second argument is NULL, migration is simple:

Calls such as  and   should be carefully rewritten because a global table with the given name will be searched and possibly created. When possible, it should be rewritten to.

luaL_register
See