[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work6) now available (for loop bug)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 18 May 2005 11:36:24 -0300
> Actually, this is more serious than I thought. In Lua 5.0, this works:
>
> mytable = { 1, 2, 3, 4 }
> for c in mytable do
> print(c)
> end
>
> In Lua 5.1 work 6, it hangs indefinitely...
Not in my copy. It just gives
attempt to call a table value
which is due to the removal of the "for k in table" syntax.
Try "for c in next,mytable do"
And I could not reproduce your other examples. Are you running a clean copy
of 5.1w6?
--lhf