disable get set
This commit is contained in:
parent
5e67c0d7e0
commit
808c3b5b91
4
impl.lua
4
impl.lua
|
@ -35,7 +35,7 @@ function Class:extend(obj)
|
|||
return self:new(...)
|
||||
end
|
||||
|
||||
-- allow for getters and setters
|
||||
--[[ -- allow for getters and setters
|
||||
mt.__index = function(table, key)
|
||||
local val = rawget(table._, key)
|
||||
--print(key, type(val))
|
||||
|
@ -70,7 +70,7 @@ function Class:extend(obj)
|
|||
else
|
||||
table._[key] = value
|
||||
end
|
||||
end
|
||||
end ]]
|
||||
|
||||
setmetatable(obj, mt)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user