Hi,
that's strange, because it's working on a jess 6.0a5 version. Are you using
this version? :
C:\Jess>java -classpath . jess/Main
Jess, the Java Expert System Shell
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 6.0a5 3/12/2001
Jess> (deftemplate AA (slot name) (slot n2))
TRUE
Jess> (defrule tt (AA (name ?name) (n2 ?n2&~?name)) => (printout t "diff"
crlf))
TRUE
Jess> (assert (AA (name "aa") (n2 "bb")))
<Fact-0>
Jess> (run)
diff
1
Jess> (assert (AA (name "aa") (n2 "aa")))
<Fact-1>
Jess> (run)
0
Jess>
Emmanuel Lecharny, IKTEK
06 08 33 32 61, www.iktek.com <http://www.iktek.com>
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De
la part de Thomas Gentsch
Envoye : samedi 26 mai 2001 14:58
A : Jess
Objet : JESS: Undefined variable referenced
Hello there,
discovered some behavior, which doesn't make sense to me:
(defrule warn-if-low
(tank (name ?name) (another_name ?n2&~?name) (low TRUE) (intact TRUE))
...
If I do this Jess complains that I use ?name before defining it (the
beans are OK) - seems to be like a parser bug (?)
Does somebody know a fix/workaround besides changing the rule by adding
a (test (neq ?n2 ?name))
Thanks a lot,
tge
--
Thomas Gentsch
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
---------------------------------------------------------------------
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]
---------------------------------------------------------------------