Reading the Zen of Jess on the Wiki, I spoted that one :

"Anger - Calling functions on LHS of a rule

Anger is what Dr. Friedman-Hill will choke back when you put (> 3.1415 x) on left-hand side (LHS) of a rule and then you ask," What went wrong?" Once you start coding, understand that with very few exceptions, the LHS of a rule is reserved for patterns only. Function calls are (typically) the actions that happen when patterns are matched. They go on the right-hand side (RHS) of rules only. "

I currently use function in my Jess rules (for classification purpose) and I really don't see why it's a problem ? For example, I use evenp/oddp to classify some facts according to one of their slots.

Thanks,

JFL
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to