[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Zero-based arrays with the FFI
- From: Mike Pall <mikelu-1103@...>
- Date: Sat, 19 Mar 2011 00:48:31 +0100
Daurnimator wrote:
> On 18 March 2011 21:23, Mike Pall <mikelu-1103@mike.de> wrote:
> > [No, this doesn't change the 1-based semantics of {} and #, etc.]
>
> I don't have luajit on me to check...
> does
> print(#ffi.new("double[3]"))
> show 3, 2 or just error?
> I question this, as getting the last element by doing #object may be invalid
An error. I was talking about # for Lua tables.
--Mike