mirror of
https://github.com/lua/lua
synced 2024-12-28 05:09:42 +03:00
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 |