Skip to main content

Aliases

  • debug.setmetatable

Argumentos

any
obrigatório
Value whose metatable is changed.
table | nil
obrigatório
New metatable, or nil to clear the metatable. Other types raise “nil or table”.

Retornos

any
The original target value.

Exemplo

Set or clear a value’s metatable and receive the target back.