mirror of https://github.com/rusefi/lua.git
f645d31573
When initializing a to-be-closed variable, check whether it has a '__close' metamethod (or is a false value) and raise an error if if it hasn't. This produces more accurate error messages. (The check before closing still need to be done: in the C API, the value is not constant; and the object may lose its '__close' metamethod during the block.) |
||
---|---|---|
.. | ||
2html | ||
manual.of |