lua-users home
lua-l archive

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


As i understand requesting things such as __index, __len, ... (all the metaindices) from metatables done via rawget. Looks like the design decision (i think it's done to avoid recursion in some cases, for example, when metatable have itself as metatable).

Sincerely,
  Volodymyr


On Tue, Dec 24, 2013 at 12:22 AM, Rena <hyperhacker@gmail.com> wrote:
I don't understand why this isn't working: http://pastebin.com/kGX5Eay0
When asking for #t, it should check the metatable "meta" for a __len method. But this doesn't seem to invoke "meta"'s __index metamethod.

--
Sent from my Game Boy.