Skip to main content

Alias

  • debug.setmetatable

Arguments

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

Retours

any
The original target value.

Exemple

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