[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Forwarding N Return Values
- From: "Ashley Fryer" <lua@...>
- Date: Tue, 16 Nov 1999 00:06:53 -0800
I didn't see any replies, so here's another try...
function returns_two() return 42, 43 end
function accepts_two( a, b ) print( a, b ) end
accepts_two( returns_two() )
Instead of this:
I think this is "by design" and has something to do with "return value
adjustment" per section 4.6.8 of the manual.
Question: Is there any way to use this syntax without resorting to
Question: Can this syntax be allowed for future versions?
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org]On
> Behalf Of Ashley Fryer
> Sent: Monday, November 08, 1999 5:40 PM
> To: Multiple recipients of list
> Subject: Forwarding N Return Values
> Hello lua-l,
> This code:
> function dest( ... ) print( arg.n ) end
> function source() return 1,2,3,4 end
> dest( source() )
> Outputs this:
> Instead of this:
> Is there some way to get this syntax to work? If not, perhaps
> this could be
> added to the wish-list for the next version?