Re: Lua 5.2 #... proposal and patch.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.2 #... proposal and patch.
- From: Tim Mensch <tim-lua-l@...>
- Date: 2011年5月09日 14:17:08 -0600
On 5/6/2011 2:02 PM, Eduardo Ochs wrote:
> Your proposed "_ARG" used to be called "arg".
> The standard way to adapt functions that used "arg" to make them run on
> Lua 5.0 was to add a line like this to the beginning of each one (IIRC):
>
> local arg = table.pack(...)
To make 5.0 code work in 5.1, it would be:
local arg = {...}
...since table.pack was introduced in 5.2.
I missed the discussion talking about WHY table.pack was introduced,
though I'm guessing that it can be made to be faster?
Tim