aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2015-01-18 19:39:12 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2015-01-18 19:39:12 +0100
commit6a55913a7f53d16e65f23a7c4e5ac7c2edfbf47a (patch)
tree3c1b43f8ddba963ff8f91466f3f075328f174c98
parent1806cdc571215fa82d6ffde3aa75204861aa6cb5 (diff)
downloadlua-compat-5.3-6a55913a7f53d16e65f23a7c4e5ac7c2edfbf47a.tar.gz
lua-compat-5.3-6a55913a7f53d16e65f23a7c4e5ac7c2edfbf47a.tar.bz2
lua-compat-5.3-6a55913a7f53d16e65f23a7c4e5ac7c2edfbf47a.zip
update readme
-rw-r--r--README.md24
1 files changed, 22 insertions, 2 deletions
diff --git a/README.md b/README.md
index b788094..26800e3 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,28 @@ your project:
67 and `math.ult` 67 and `math.ult`
68* `ipairs` respects `__index` metamethod 68* `ipairs` respects `__index` metamethod
69* `table.move` 69* `table.move`
70* `table` library (except `table.sort`) respects metamethods 70* `table` library respects metamethods
71
72For Lua 5.1 additionally:
73* `load` and `loadfile` accept `mode` and `env` parameters
74* `table.pack` and `table.unpack`
75* string patterns may contain embedded zeros
76* `string.rep` accepts `sep` argument
77* `string.format` calls `tostring` on arguments for `%s`
78* `math.log` accepts base argument
79* `xpcall` takes additional arguments
80* `pcall` and `xpcall` can execute functions that yield
81* `pairs` respects `__pairs` metamethod
82* `rawlen` (but `#` still doesn't respect `__len` for tables)
83* `package.searchers` as alias for `package.loaders`
84* `package.searchpath`
85* `coroutine` functions dealing with the main coroutine
86* `coroutine.create` accepts functions written in C
87* return code of `os.execute`
88* `io.write` and `file:write` return file handle
89* `io.lines` and `file:lines` accept format arguments (like `io.read`)
90* `debug.setmetatable` returns object
91* `debug.getuservalue` and `debug.setuservalue`
71 92
72### C 93### C
73 94
@@ -115,7 +136,6 @@ For Lua 5.1 additionally:
115* bit operators 136* bit operators
116* integer division operator 137* integer division operator
117* `coroutine.isyieldable` 138* `coroutine.isyieldable`
118* `table.sort` doesn't respect metamethods yet
119* Lua 5.1: `_ENV`, `goto`, labels, ephemeron tables, etc. See 139* Lua 5.1: `_ENV`, `goto`, labels, ephemeron tables, etc. See
120 [`lua-compat-5.2`][2] for a detailed list. 140 [`lua-compat-5.2`][2] for a detailed list.
121* the following C API functions/macros: 141* the following C API functions/macros: