[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: access to the keys of a table
- From: Gabriel Peyré <nikopol0@...>
- Date: Tue, 19 Nov 2002 01:14:39 +0100
Thanks for your response, I was working with LUA 4.0, which doesn't seem to
have this facility.
Upgrading to 5.0 seems the right thing to do :)
Gabriel
----- Original Message -----
From: "Marius Kjeldahl" <marius@kjeldahl.net>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Monday, November 18, 2002 11:09 PM
Subject: Re: access to the keys of a table
> Gabriel Peyré wrote:
> > Sorry if this question has already been answered, I didn't manage to
find a
> > simple answer (both on the archives and in
> > the refman).
>
> It's in refman.
>
> Start with lua_pushnil (L), then call lua_next (L, index) for each key.
The
> complete source code is in refman.
>
> --
> Mvh, Marius Kjeldahl
>