lua-users home
lua-l archive

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


On 2012-12-05 6:46 AM, "John Hind" <john.hind@zen.co.uk> wrote:
>
> Please take a look at my new PowerPatch at http://lua-users.org/wiki/LuaPowerPatches. This allows the Table and Userdata types to have type metatables without losing their current per-object ones. This new mechanism is then used to expose the Table Library as methods of Table objects in the same way the String Library is exposed for String objects. (Logically, 'pairs', 'ipairs' and 'next' should also be exposed as methods, but I have not done that in the patch.) For very little cost, this makes Lua more consistent and also adds a powerful new generalised mechanism for others to build on.
>

This makes all kinds of sense. Of course there should be a debug.settypemt as well.