[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: index/newindex on a table
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 4 Oct 2002 18:14:09 -0300 (EST)
>Try starting from the simplest example and build up. This is what I get:
You output seems to be what I expected. What is wrong wiht it?
The __index metamethod is called twice and the __newindex once.
Since the __newindex metamethod does not set the value of XYZ,
the __index metamethod is called a second time. Isn't that right?