[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question about cdata type identification
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Tue, 19 Apr 2011 09:36:33 +0200
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