[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Global Metatables
- From: David Manura <dm.lua@...>
- Date: Mon, 6 Sep 2010 09:37:22 -0400
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