[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Can lua_next() error?
- From: Tom Sutcliffe <tomsci@...>
- Date: Mon, 16 Apr 2018 12:22:30 +0000 (GMT)
I've been reviewing some of my native code for safety and noticed that I've been assuming lua_next() will not raise arbitrary errors. In the 5.3 documentation however, lua_next is listed as 'e' meaning it can.
I couldn't think of any obvious reason how it could error, since there is no metamethod to override a next iteration, and I couldn't see anything in the implementation that would trigger an __index. Am I missing something or is the documentation incorrect?