[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: Sat, 19 Mar 2011 06:14:31 +1300
On 18/03/2011, at 10:28 PM, Tony Finch wrote:
> Romulo <romuloab@gmail.com> wrote:
>
>> Couldn't you just ignore the zero'th element in the case of ffi array?
>> In other words, create an array with size n+1?
>
> Or you can use the 0th element of the table.
Does the 0th element of a table go into the array part of the table in plain Lua?