PICO-8 Wiki
Advertisement
getmetatable( tbl )
Gets the metatable for a table.
tbl
The table.

Returns the table's metatable.

Examples

Based on the pixel class example in setmetatable:

p1 = pixel:new()
p1class = getmetatable(p1)

See also

Advertisement