[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Reading all globals
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 30 Apr 2002 14:09:23 -0300
>Be aware that 'lua_next' works fine for tables which contain only associations, but causes problems if your tables have indexed entries.
lua_next works fine for all tables. You just have to be aware that calling
lua_tostring on an index messes thing up for lua_next if the index is numerical.
This is an unfortunate side-effect of lua_tostring, which unfortunately shows
up when you're trying to learn how lua_next works and decide to print the
value of indices with lua_tostring.