[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: rawget() & metamethods
- From: Rici Lake <lua@...>
- Date: Wed, 10 Aug 2005 15:45:29 -0500
On 10-Aug-05, at 3:30 PM, PA wrote:
Shouldn't rawget() _only_ return values which are effectively defined
by a table, metatable and metamethods notwithstanding?
Yes.
What gives?
My first guess would be that __eq and friends are actually in the table
you're enumerating.
Unless you've redefined pairs(), the call to rawget is not particularly
useful, since the standard pairs() function is also ignorant of
metamethods.