refactoring
This commit is contained in:
+3
-2
@@ -161,11 +161,12 @@ do
|
||||
return {__call=f, __unm=function(self) return setmetatable(self, nil) end}
|
||||
end
|
||||
local set_mt, list_mt, object_mt = collector_mt(insert_keys), collector_mt(insert_values), collector_mt(insert_pairs)
|
||||
public()
|
||||
|
||||
_=public
|
||||
function set.get() return setmetatable(t, set_mt) end
|
||||
function list.get() return setmetatable(t, list_mt) end
|
||||
function object.get() return setmetatable(t, object_mt) end
|
||||
private()
|
||||
_=private
|
||||
end
|
||||
|
||||
function public.log(...) temp=arg
|
||||
|
||||
Reference in New Issue
Block a user