lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Unfortunately, lua_tostring changes the type of the value and this
confuses lua_next.  This is a known limitation of lua_next and it's
specially unfortunate because it crops up when you add printf's for debugging...

If you must use lua_tostring or lua_tonumber (or the corresponding lua_is*),
then you must duplicate the value.
--lhf