[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [HELP!] invalid key to 'next'
- From: Mike Pall <mikelu-0704@...>
- Date: Fri, 13 Apr 2007 22:31:31 +0200
Hi,
Norman Ramsey wrote:
> /usr/local/bin/lua5.1: invalid key to 'next'
> [...]
> Here is a fragment of the source code:
>
> assert(type(rset) == 'table')
> for r in pairs(rset) do --- this is line 961
> assert(papers[r][pnum], 'reviewed-by and papers are inconsistent')
>
> I don't see how this can possibly be wrong, but evidently the compiler
> sees something that I don't. Can anyone suggest what I might do?
Compiler? Nope: the runtime.
Does 'rset' happen to be a weak table or is rset modified inside
the loop?
Bye,
Mike