lua-users home
lua-l archive

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



On Mon, May 30, 2011 at 4:05 AM, Joerg Walter <joerg-walter@gmx.de> wrote:
Hi

I'd like to cylce through a table variable from a C function. Since tables can contain references on tables and since this can result in cyclic structures I need to know somehow that I'm am stuck in a cycle at some point. I have save remember which table I already have visited. What is an appropriate identifier of a table and how can I retrieve it from C?



Can't you use the table itself as the key?