[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Reading all globals
- From: "Kurt Jung" <kurt.jung@...>
- Date: Tue, 30 Apr 2002 12:36:35 -0400
Eric Tetz <firstname.lastname@example.org> wrote:
> --- Martin Swaine <email@example.com> wrote:
> > I understand lua_getglobals puts them onto the stack as a table and then
> > lua_gettable can be used to get the value of a named key, but I don't
> > know in advance the keys(variable names) that are being used.
> Search for 'lua_next' in the manual.
Be aware that 'lua_next' works fine for tables which contain only associations, but causes problems if your tables have indexed entries.