changes
This commit is contained in:
@@ -27,3 +27,24 @@ function login.cb_uglytimedaemon()
|
||||
end
|
||||
|
||||
function time() return ug.get('time') end
|
||||
|
||||
function isa(k1,k2)
|
||||
if k1==k2 then return true end
|
||||
if k1==nil then return false end
|
||||
local mt=getmetatable(k1)
|
||||
if not mt then return false end
|
||||
return isa(mt.__index,k2)
|
||||
end
|
||||
|
||||
function tabcat(t1,t2)
|
||||
for i=1,#t2 do t1[#t1+1]=t2[i] end
|
||||
end
|
||||
|
||||
function multistart(filter,closure)
|
||||
local lis=tangible.scan('nowhere',0,0,1000000000,false)
|
||||
lis=tabcat(lis,tangible.scan('main',0,0,1000000000,true)
|
||||
for _,t in iparis(lis) do if filter(t) then closure(t) end end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user