[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Global Metatables
- From: HyperHacker <hyperhacker@...>
- Date: Sat, 4 Sep 2010 16:39:39 -0600
On Sat, Sep 4, 2010 at 16:23, Jonathan Castello <firstname.lastname@example.org> wrote:
> On Sat, Sep 4, 2010 at 3:14 PM, RJ Russell <email@example.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.
> Functions already share a single metatable, don't they?
A while ago I was thinking how useful it could be to set a default
metatable for newly-created tables. I did put together a patch for it,
but it's a nasty hack and I haven't been actually using it.
Sent from my toaster.