lua-users home
lua-l archive

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


Kurt Nordstrom <doseofvitamink@gmail.com> wrote:
> Huh, it looks interesting.  The addition of the __usedindex metamethod seems
> like a huge boon in making protected access tables/objects.  I've wondered
> why Vanilla Lua doesn't have something like that.

I've tried to "orthogonalise" the available metamethods. The beauty of
metamethods is that if you don't want or need them, they are not getting
in the way, so I reckoned a more rounded spectrum would be helpful for
some applications.

Including further metamethods (as well as their implementation details)
depends to some extent on design goals and is open to debate, of course.

BTW, there is a patch for plain Lua (up to 5.1.4), see
http://lua-users.org/wiki/LuaPowerPatches and
http://blua.leet.cz

-- 
cheers  thomasl

web: http://thomaslauer.com/start