lua-users home
lua-l archive

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


>According to the manual the __newindex metamethod is
>the settable event.I tried setting the same var twice(i=2;i=3;) and my
>metamethod got called twice.

That's because your __newindex function didn't set the value of "i" the first
time. This may be or not what you want.
--lhf