lua-users home
lua-l archive

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

...then you could make the constructor like this:

local m = dim(100,100)



On Thu, Nov 5, 2009 at 8:34 AM, steve donovan <> wrote:
> On Thu, Nov 5, 2009 at 3:26 PM, Luiz Henrique de Figueiredo
> <> wrote:
>> If you can use m(i,j) (as in Fortran), then you can set a __call metamethod.
> And then no one can argue when you use 1-based arrays ;)