No, I'm using diferent names for the variables. I think the problem can
be because I'm using the OBJECT, but I need to do it, because I need to
call a function defined in the class Area.

Regards,

Joao Mourao

---------------------------------------------
Unclassified email

Ernest Friedman-Hill wrote:


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

begin:vcard
fn;quoted-printable:Jo=C3=A3o Mour=C3=A3o
n;quoted-printable;quoted-printable:Mour=C3=A3o;Jo=C3=A3o
org:Thales;Above Water Systems
adr:;;;Hengelo;;;Netherlands
email;internet:[EMAIL PROTECTED]
title:THALES NETHERLANDS B.V.
tel;work:2640
note:-unclassified mail-
version:2.1
end:vcard

Reply via email to