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(...)
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user