On Apr 1, 2008, at 5:39 AM, Joao Antunes Mourao wrote:

 I tested and is not working. It
seems that jess refuses to assign two times the same class in the rule.


No, there's no such restriction. You can see examples of exactly this in the "pricing engine" demo that ships with Jess; look at the rule free-cd-rw-disks, for example. More likely the problem is you're using the same variable name in both patterns, forcing them to be unified, while matching some other slot to distinct values, forcing them to be different -- i.e., you may have written patterns that are impossible to satisfy.


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com




--------------------------------------------------------------------
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