[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: how to traverse a lua-table from C-Code?
- From: zahn@... (Corvin Zahn)
- Date: Fri, 06 Feb 1998 18:38:51 GMT
Hi,
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)
end
Is this possible?
Many thanks,
C. Zahn
---
Corvin Zahn <zahn@zac.de>