Skip to main content

Алиасы

  • debug.setmetatable

Аргументы

any
обязательно
Value whose metatable is changed.
table | nil
обязательно
New metatable, or nil to clear the metatable. Other types raise “nil or table”.

Возвраты

any
The original target value.

Пример

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