[Omake] short-circuit returns

Nathaniel Gray n8gray at caltech.edu
Thu Aug 9 15:28:57 PDT 2007


Hi guys,

OMake 0.9.8.5 behaves differently than previous versions on some  
return statements.  In particular, it seems to dislike returns that  
exit early from functions.  So this function that used to work now  
gives "Misplaced return statement" on the first return:

get-tasty(args) =
	foreach(x, $(args))
		if $(is-tasty $(x))
			return $(x)
	return $(new-tasty 123)

Is this expected behavior?

Thanks,
-n8

--
 >>>-- Nathaniel Gray -- Caltech Computer Science ------>
 >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->




More information about the Omake mailing list