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.