setmetatable(table, metatable)
Sets the metatable for the given
table. Ifmetatableisnil, the metatable of it is removed. This function returns the tabletblwhich was passed to it. Iftblalready has a metatable with the__metatablemetamethod, calling this ontablecauses an error.