lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Question: Is there any way to use this syntax without resorting to
> intermediate variables?

No, unless you make your call through the "call" function:

  call(accepts_two, call(returns_two, {}, "p"))

but that is too cumbersome and ineficient.


> Question: Can this syntax be allowed for future versions?

I don't think so, because it could cause incompatibilities with existing 
code, and the implementation would be slower even for the much more 
frequent case when we are passing only one result. But we will think
about...


-- Roberto