[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Zero-based arrays with the FFI
- From: Daurnimator <quae@...>
- Date: Fri, 18 Mar 2011 16:20:26 +1100
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