Question regarding set metatable and __index

A metatable is still a table, like any other table. When using setmetatable() you’re just assigning a table to act as the metatable for another table, meaning it will look in that table for any metamethods that would alter the normal functionality of the table.
To be set as a metatable the only requirement would be that it has a datatype of table.

1 Like