big refactoring
This commit is contained in:
+7
-4
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user