Getmetatable

From Pico-8 Wiki
Jump to navigation Jump to search
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