[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables are "hard" (Re: Question about __index and classes)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 10 Sep 2011 16:19:26 -0300
> To make matters more confusing for the new-to-Lua programmer, people often implement methods using the __index entry in metatables, possibly going so far as to make __index point at the metatable itself (a horrendous semantic security hole if one worries about such things).
That's what I do. Why is it so bad?