- Function was renamed . (See compile-time option
LUA_COMPAT_GFIND
inluaconf.h
.) - When
string.gsub
is called with a function as its third argument, whenever this function returns nil or false the replacement string is the whole match, instead of the empty string. - Function
loadlib
was renamed . (See compile-time optionLUA_COMPAT_LOADLIB
inluaconf.h
.) - Function
math.mod
was renamedmath.fmod
. (See compile-time optionLUA_COMPAT_MOD
inluaconf.h
.) - There were substantial changes in function due to the new module system. However, the new behavior is mostly compatible with the old, but
require
gets the path frompackage.path
instead of fromLUA_PATH
. - Function has different arguments. Function is deprecated; use
collectgarbage("count")
instead.