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
end)
public.perm = modifier(function(t)
temporary[t] = false
return t
end)
do
local mt = {__call = function(self, key) return self[key] end}
public.set = modifier(function(table)
@@ -68,7 +73,7 @@ do
return setmetatable(self, mt)
end)
end
do
local mt = {
__call=function(self, value)
@@ -77,12 +82,10 @@ do
end,
}
function public.accessor.from()
return setmetatable(t, mt)
return setmetatable(tt, mt)
end
end
-- TODO map
end