[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luajit: any way to make array initialization zero-based?
- From: Chris <coderight@...>
- Date: Wed, 13 Jun 2012 18:46:04 -0400
On Wed, Jun 13, 2012 at 6:07 PM, Chris <coderight@gmail.com> wrote:
> I suppose something to make the
> FFI arrays one-based would work just as well.
After looking at the Lua libraries some more I think making Lua
zero-based might be too problematic. If that's the case then making
LuaJIT's FFI interface one-based would be better. So the ctype[1]
element would actually be the array[0] at the C level. I believe a
while ago I looked into trying to make a change like that to LuaJIT
but it wasn't obvious how to do it.
CR