[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: access to the keys of a table
From:       Marius Kjeldahl <marius () kjeldahl ! net>
Date:       2002-11-18 22:09:33
Message-ID: 3DD9651D.5010804 () kjeldahl ! net
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic