Lua Programming/How to Lua/metamethod

From Wikibooks, open books for an open world
Jump to: navigation, search

An object with a metatable can be treated as a value of any other datatype.

List of metamethods[edit]