benilla-re systems structs docs

s_textCannotChangeProtectedMetatable

global · ui

Address
0x872a5c · 36 bytes, up to 0x872a7f
Type
char[36]
Meaning
Holds the string "cannot change a protected metatable"
Confidence
verified, proof two
Finding
ui/luabase#metatables

Finding: Metatables in ui: the Lua base library

getmetatable(v) requires an argument and answers nil for a value without a metatable. Otherwise it answers the metatable's __metatable entry when there is one, the metatable itself when not. setmetatable(t, mt) requires a table at 1 and nil or a table at 2 (argument 2 error nil or table expected), raises cannot change a protected metatable when the table's metatable has a __metatable entry, then sets the metatable and returns the table.

The derivation is in the doc.