lua-users home
lua-l archive

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


In Lua 3.2, the lua.h file contains a lua_next function.  This looks like
the Lua next function for traversing tables, but it's API isn't very
clear.  (I can't find it in the docs.)

To get the first key, do you pass lua_next the table and 0?  It looks like
0 is returned when it's done.

F