Lua Programming/How to Lua/metamethod

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

List of metamethodsEdit

  • __add
  • __concat
  • __call
  • __div
  • __eq
  • __index
  • __le
  • __len
  • __lt
  • __mul
  • __newindex
  • __pow
  • __sub
  • __tostring
  • __unm
Last modified on 11 February 2011, at 02:00