Re: Problems when traversing tables.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Problems when traversing tables.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2001年5月14日 19:38:20 -0300 (EST)
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