Return doesn't exit deffunctions as it should in all cases.

/Lars

----------------------

Jess, the Java Expert System Shell
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 4.1b4 7/28/98

Jess> (deffunction a ()
  (foreach i (create$ a b c)
    (if TRUE then (return correct)))
  (return incorrect))  ; should never be returned
TRUE

Jess> (printout t returns" "(a) crlf)
returns incorrect

Jess>
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to