📜  roblox 元表 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:57.344000             🧑  作者: Mango

代码示例1
local x = {}
local metaTable = {}       -- metaTables are tables, too!
setmetatable(x, metaTable) -- Give x a metatable called metaTable!
print(getmetatable(x)) --> table: [hexadecimal memory address]