big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-22 21:51:03 +02:00
parent 77e1a9b8e0
commit 3a40cddda1
+7 -4
View File
@@ -59,6 +59,11 @@ do
return t return t
end) end)
public.perm = modifier(function(t)
temporary[t] = false
return t
end)
do do
local mt = {__call = function(self, key) return self[key] end} local mt = {__call = function(self, key) return self[key] end}
public.set = modifier(function(table) public.set = modifier(function(table)
@@ -68,7 +73,7 @@ do
return setmetatable(self, mt) return setmetatable(self, mt)
end) end)
end end
do do
local mt = { local mt = {
__call=function(self, value) __call=function(self, value)
@@ -77,12 +82,10 @@ do
end, end,
} }
function public.accessor.from() function public.accessor.from()
return setmetatable(t, mt) return setmetatable(tt, mt)
end end
end end
-- TODO map -- TODO map
end end