-
Notifications
You must be signed in to change notification settings - Fork 38
Home
Philipp Janda edited this page Mar 16, 2015
·
4 revisions
Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1.
Some of the functions implemented by Compat-5.3 do not provide 100% compatibility with Lua 5.3 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.
ipairs
pairs
debug.getuservalue
debug.setuservalue
math.type
os.execute
package.searchpath
io.lines
file:lines
- pattern matching
- string packing
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 in the original 5.3 C API are implemented as macros instead.