lua-users home
lua-l archive

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

> I'm using the standard c table parsing code that is described in the lua
> manual. The issue appear to be when lua_next comes to parse the "line2"
> data, "line1" is parsed correctly, with the key set to 1 as is expected, but
> the next iteration causes lua to bomb out. Tracing into lua reveal an
> invalid key error.

You're probably not popping the value in the loop or using lua_tostring
on numerical keys. See