This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Philipp Janda edited this page Mar 12, 2015
·
4 revisions
Compatibility module providing Lua-5.2-style APIs for Lua 5.1.
Some of the functions implemented by Compat-5.2 do not provide 100% compatibility with Lua 5.2 due to technical reasons. This page links to specific information about each affected function.
Differing error messages or stack traces are not listed as incompatibilities here.
collectgarbage
ipairs
pairs
debug.setuservalue
debug.getuservalue
os.execute
package.searchpath
io.lines
file:lines
- pattern matching
Most implemented functions use the Lua stack for temporary values (and may use more stack space than the original function), but they ensure that enough space is available by means of luaL_checkstack
. Also, differing error messages are not explicitly listed as incompatibilities. Some functions are available for Lua 5.0, too, but there is no support, and missing functions are not listed here.