lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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>