> isn't this already possible with setmetatable() ? >From the manual: setmetatable (table, metatable) Sets the metatable for the given table. (You cannot change the metatable of other types from Lua, only from C.) -- Roberto