Getmetatable

From OpenEUO
Revision as of 18:02, 7 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.

Lua Manual - Metatables