Skip to content

Metamethods

Rohansi edited this page Oct 19, 2014 · 16 revisions
Name Operator Description
__get x.y, x[y]
__set x.y = z, x[y] = z
__call x(...y)
__eq x == y
__gt x > y
__in x in y
__add x + y
__sub x - y
__mul x * y
__div x / y
__mod x % y
__pow x ** y
__neg -x
__and x + y
__or x - y
__xor x * y
__lshift x / y
__rshift x % y
__not ~x
__number N/A
__bool N/A
__string N/A
__serialize N/A