[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Table traversal in C
- From: David Jeske <jeske@...>
- Date: Wed, 18 Feb 1998 00:12:02 -0800
You can always do it by just getting the "next" function and holding a reference
to it. Then call that function with your reference each time. However, it would
be nice if there was a straight lua_nextelement() type function for walking a
table more-directly. (i.e. what if "next()" is no longer a global variable :)
I looked quickly though the beta 3.1 "lua.h" and didn't see anything which
looked like it would do this.
On Wed, Feb 18, 1998 at 02:28:55AM -0200, Fred Bertsch wrote:
> In the FAQ, there's a mention that it will be possible to traverse a lua
> table from C in Lua 3.1. How does that work? I couldn't find any mention
> of it in the alpha docs...
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + firstname.lastname@example.org