Re: Multiple values returned or vararg expression in numeric for	loop
[
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: Egor Skriptunoff <egor.skriptunoff@...>
 
- Date: 2012年9月13日 18:42:50 +0400
 
On 9/13/12, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> The syntax of the numeric "for" is:
> for Name ‘=’ exp ‘,’ exp [‘,’ exp] do block end
> I.e. the comma is part of the syntax, and
> exp ‘,’ exp [‘,’ exp] is not an expression list.
Why numeric "for" syntax is not fully compliant with "Lua spirit"
(it implies possibility to feel free with multiple values returned
from a function anywhere instead of hard-coded list)?