[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: how to traverse a lua-table from C-Code?
- From: zahn@... (Corvin Zahn)
- Date: Fri, 06 Feb 1998 18:38:51 GMT
I would like to use LUA as a configuration language for a C++ programm.
What I need, is a possibility to traverse a lua-table from C-Code without
knowing all the keys, like
local i, v = next(t, nil)
while i do
local res = f(i, v)
if res then return res end
i, v = next(t, i)
Is this possible?
Corvin Zahn <firstname.lastname@example.org>