lua-users home
lua-l archive

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


Francesco Abbate wrote:
> ... M[x][y] ...
>
> M[x] to obtain a row is implemented but it is inefficient
> because it does generate a new object and copy the data each
> time.

This should return a _reference_ to the object, not a copy of the
data. Creation of references can usually be eliminated.

--Mike