[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Forwarding N Return Values
From:       Roberto Ierusalimschy <roberto () inf ! puc-rio ! br>
Date:       1999-11-16 12:21:38
Message-ID: 199911161223.KAA25153 () obatala ! inf ! puc-rio ! br
[Download RAW message or body]

> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic