[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multiple values returned or vararg expression in numeric for loop
- From: Dimitris Papavasiliou <dpapavas@...>
- Date: Fri, 14 Sep 2012 16:15:47 +0300
> Now, suppose you write this code:
>
> Inc = -1
> for i = 10, 1, lnc do print(i) end
>
> Currently this raises an error. With the new format, it will silently
> skip the loop.
It only generates an error in 5.1 by the way (which I never noticed
before) but it seems to work in 5.2.