[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: invalid key to 'next'
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Sun, 24 May 2009 18:43:18 +0200
2009/5/24 Agi Shi <email@example.com>:
> Hi all! I'm nullsquared, new to the mailing list, with a bit of a
> complicated situation.
> This code: http://lua.pastebin.com/f7b33bcca
> Works 100% under Lua 5.0.x (paired with any recent version of luabind), but
> fails under Lua 5.1.4 with the runtime error message: invalid key to 'next'
> When sheet.update() is called, it iterates over the passed in table and
> creates a GUI; the table itself is only read, not modified, and it is
> iterated over via standard luabind table iterators.
> I cannot quite figure out why Lua 5.1.4 breaks my code, any ideas?
You should reduce your code to something shorter showing the problem.
What you pasted is just too long to find the bug visually, and it's
incomplete so we cannot run it.