Getmetatable
From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Available since: Gideros 2011.6
Class: (global)
Description
Returns the metatable of the given object.
(table) = getmetatable(object)
- if object does not have a metatable, returns nil.
- if the object metatable has a "__metatable" field, returns the associated value.
- otherwise, returns the metatable of the given object.
Parameters
object: (object) object from which to get metatable
Return values
Returns (table) metatable