lua-users home
lua-l archive

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


> Furthermore I wonder for what the current implementation of # makes
> any sense for an application except for strictly linear arrays, other
> than the t[#t +1]=v case which can perfectly be covered already with
> table.insert(t, v). 

I did give an example of # usage that is not strict linear array: 
http://lua-users.org/lists/lua-l/2010-05/msg00401.html
Maybe not the best use case, but still very handy !

Cuero