globals _G and _VERSION are _tables_
steve donovan
7 years ago
49 | 49 | --- |
50 | 50 | -- A global variable (not a function) that holds the global environment |
51 | 51 | -- (that is, `_G._G = _G`). Lua itself does not use this variable; changing |
52 | -- its value does not affect any environment, nor vice-versa. (Use `setfenv` | |
53 | -- to change environments.) | |
54 | -- function _G end | |
55 | -- * `_G._G`: _G._G | |
52 | -- its value does not affect any environment, nor vice-versa. (Set `__ENV` | |
53 | -- to change environments in functions) | |
54 | -- @table _G | |
56 | 55 | |
57 | 56 | --- |
58 | 57 | -- If `object` does not have a metatable, returns nil. Otherwise, if the |
199 | 198 | -- A global variable (not a function) that holds a string containing the |
200 | 199 | -- current interpreter version. The current contents of this variable is |
201 | 200 | -- "`Lua 5.1`". |
202 | -- function _VERSION end | |
203 | -- * `_G._VERSION`: _G._VERSION | |
201 | -- @table _VERSION | |
204 | 202 | |
205 | 203 | --- |
206 | 204 | -- This function is similar to `pcall`, except that you can set a new |