> in C, the lua_tonumber() is an in-place convertion, it changes the > value in stack and may cause unwanted behavior when you're iterating a > table. No, lua_tonumber does not change the value in the stack.. You are describing lua_tostring.