[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Zero-based arrays with the FFI
- From: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 18 Mar 2011 18:21:59 +1300
On 18/03/2011, at 6:20 PM, Daurnimator wrote:
> On 18 March 2011 15:14, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
>> darray = function(n, ...)
>> local a = {}
>> for i = 1, select('#', ...) do a[i] = select(i, ...) end
>> return a
>> end
>
> As a side note, thats a really bad+silly function.
> You will get the same effect with:
> darray = function(n,...)
> return { ... }
> end
Duh! Thanks.