Re: Reading all globals
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Reading all globals
- From: "Kurt Jung" <kurt.jung@...>
- Date: 2002年4月30日 12:36:35 -0400
Eric Tetz <erictetz@yahoo.com> wrote:
> --- Martin Swaine <martin.swaine@team17.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.
Kurt Jung