[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1+ and variable-argument tables
- From: Edgar Toernig <froese@...>
- Date: Fri, 20 Aug 2004 01:21:48 +0200
Rici Lake wrote:
>
> Rici coughs and points out that functional tuples wouldn't have the
> problem Wim pointed to, and would be a more general solution.
Maybe. But the whole point of the change is to avoid allocating
a (usually short-living) heap object on each vararg-function
invocation.
Your tuple proposal just introduces a new datatype. All the
syntax extensions could equally well be implemented for tables.
Where's the tuple variant better than a regular table? Any
performance differences would only be implementation details.
Ciao, ET.