Getmetatable

From OpenEUO
Revision as of 10:07, 9 October 2010 by 76.184.213.234 (Talk)

Jump to: navigation, search
getmetatable(object)

If object does not have a metatable, returns nil. Otherwise, if the object's metatable has a "__metatable" field, returns the associated value. Otherwise, returns the metatable of the given object.

Setmetatable

Lua Manual - Metatables