Difference between revisions of "Getmetatable"
From OpenEUO
Line 2: | Line 2: | ||
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. | 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. | ||
+ | |||
+ | [[Rawequal]] | ||
+ | |||
+ | [[Rawget]] | ||
+ | |||
+ | [[Rawset]] | ||
[[Setmetatable]] | [[Setmetatable]] | ||
[http://www.lua.org/manual/5.1/manual.html#2.8 Lua Manual - Metatables] | [http://www.lua.org/manual/5.1/manual.html#2.8 Lua Manual - Metatables] |
Latest revision as of 10:15, 9 October 2010
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.