lua-users home
lua-l archive

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

> I would like to use expressions where userdata are indexed with more
> comma-separated values. For example, if you want to index a matrix it
> would be natural to write something like:
> m[i, j]

If you can use m(i,j) (as in Fortran), then you can set a __call metamethod.