[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Lua5.4] lua_toclose will close the wrong value
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 21 May 2019 15:06:13 -0300
> The manual states for lua_toclose():
>
> [...] AN INDEX MARKED AS TO-BE-CLOSED SHOULD NOT BE REMOVED FROM
> THE STACK BY ANY OTHER FUNCTION IN THE API EXCEPT LUA_SETTOP OR
> LUA_POP.
>
> [...]
>
> [...] It might be that moving the item to be
> cleaned is disallowed as well and the manual doesn't mention it.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It seems it does.
-- Roberto