[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: kick starting lua_next()
- From: "Marius Gheorghe" <mgheorghe@...>
- Date: Mon, 27 Sep 2004 17:41:52 -0400
Being in a tight spot (thus preferring not to have to look at the source
code) I thought of asking these questions to the list, maybe someone knows
already the answer and has the time to post it here.
1) Does lua_next() have to be always kick started by using lua_pushnil() or
is it acceptable to push any key and the traversal will commence from that
key?
2) If the answer to the above is true (pushing a key other than nil is
acceptable), will lua_next() work if the key is not present in the table
being traversed?
Thank you.
Marius Gheorghe