lua-users home
lua-l archive

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


On Mon, Apr 18, 2011 at 21:44, Francesco Abbate <francesco.bbt@gmail.com> wrote:
> m(i,j) = 3.14
> [snip] we can introduce the __newcall metamethod to make
> it work!!

Another possible solution would be to extend the __index and
__newindex to take more than one parameter. In the same vein __len
could be extended to return more than one value.

-- Pierre-Yves