[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: newbie to lua :-) a trivial question...
- From: starwing <weasley.wx@...>
- Date: Thu, 25 Nov 2010 09:14:30 +0800
why not do this in semantics? e.g. for multi return value function f() return 4,5,6 end:
{1,2,3,f()} == {1,2,3,4,5,6} --> as the same
{1,2,3,(f())} == {1,2,3,4} --> as the same
{f(), 1,2,3} == {4,5,6,1,2,3} --> different
{(f()), 1,2,3} == {4,1,2,3} --> as the same
has any discuss or reason to use current semantics?