lua-users home
lua-l archive

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

On Sat, Sep 4, 2010 at 16:23, Jonathan Castello <> wrote:
> On Sat, Sep 4, 2010 at 3:14 PM, RJ Russell <> 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?
> ~Jonathan

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.