lua-users home
lua-l archive

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


On Sat, Sep 4, 2010 at 6:14 PM, RJ Russell <russellsprouts2@gmail.com> wrote:
> In 5.2, I think it would be great if we could set metatables for ALL
> tables and ALL functions, much like you can set it for all strings and
> all numbers.

I once proposed an alternate idea that would apply a metamethod to ALL
values, though only within a lexical scope.  This change would impose
no change on the VM:

http://lua-users.org/lists/lua-l/2010-06/msg00515.html