Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua metatable assignment

t = {}
print(getmetatable(t))   --> nil

t1 = {}
setmetatable(t, t1)
assert(getmetatable(t) == t1)   --> true
 
PREVIOUS NEXT
Tagged: #lua #metatable #assignment
ADD COMMENT
Topic
Name
8+7 =