lua-users home
lua-l archive

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

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?


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.