lua-users home
lua-l archive

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

> Ok, so now we should think of lua_next in terms of "raw access to 
> a table", and a combination of luaL_callmeta, lua_call and some stack 
> fiddling as the way to traverse a table honoring its __pairs field, right?

Something like that, yes. Check the code in lbaselib.c for pairs.