What is the C interface to Lua for accessing a table's key/value pairs?
Posted
by KPexEA
on Stack Overflow
See other posts from Stack Overflow
or by KPexEA
Published on 2009-06-08T19:35:20Z
Indexed on
2010/05/04
1:48 UTC
Read the original article
Hit count: 258
In Lua, using the C interface, given a table, how do I iterate through the table's key/value pairs?
Also, if some table table members are added using arrays, do I need a separate loop to iterate through those as well or is there a single way to iterate though those members at the same time as the key/value pairs?
© Stack Overflow or respective owner