refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-06 03:07:01 +02:00
parent 534a1874b0
commit 1a40dd1d47
7 changed files with 99 additions and 98 deletions
+3 -3
View File
@@ -81,10 +81,10 @@ function public.wait(k, ...) temp=arg
end
end
function public.when(p, k, ...) temp=arg
if p() then
function public.when(c, k, ...) temp=arg
if c() then
return k(unpack(arg))
else
return wait(when, p, k, unpack(arg))
return wait(when, c, k, unpack(arg))
end
end