Getmetatable

From GiderosMobile
Revision as of 08:30, 24 August 2018 by Hgy29 (talk | contribs)

Available since: Gideros 2011.6

Description

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.

(table) = getmetatable(object)

Parameters

object: (object) Object from which to get metatable

Return values

Returns (table) metatable