lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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