Difference between revisions of "Getmetatable"

From OpenEUO
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
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]]
  
 
[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.

Rawequal

Rawget

Rawset

Setmetatable

Lua Manual - Metatables