lua-users home
lua-l archive

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


on 9/22/04 11:33 AM, Rici Lake at lua@ricilake.net wrote:

> However, it does create an ambiguity in the case where object is either
> a table with a __call metamethod or a userdata with both __call and
> __index metamethods. Perhaps this is not serious: this could be dealt
> with by simply documenting that gettable (if it exists) takes priority,
> even if it fails to find the key.

I had thought of that and had concluded that the correct answer was that
this extension only applied to functions. I should have mentioned that in my
proposal.

Mark