disable get set

This commit is contained in:
Lorraxs 2024-01-11 15:21:13 +07:00
parent 5e67c0d7e0
commit 808c3b5b91

View File

@ -35,7 +35,7 @@ function Class:extend(obj)
return self:new(...) return self:new(...)
end end
-- allow for getters and setters --[[ -- allow for getters and setters
mt.__index = function(table, key) mt.__index = function(table, key)
local val = rawget(table._, key) local val = rawget(table._, key)
--print(key, type(val)) --print(key, type(val))
@ -70,7 +70,7 @@ function Class:extend(obj)
else else
table._[key] = value table._[key] = value
end end
end end ]]
setmetatable(obj, mt) setmetatable(obj, mt)