lua-users home
lua-l archive

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


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