repeat .. until fails if condition is supplied by a function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

repeat .. until fails if condition is supplied by a function

danilafoxpro
This produces java.lang.RuntimeException:
local function equal( thing1, thing2 )
	return thing1 == thing2
end

local i = 1
repeat
	i = i + 1
until equal( i, 5 )
Reply | Threaded
Open this post in threaded view
|

Re: repeat .. until fails if condition is supplied by a function

fschmidt
Administrator