Hello,

the following rule

(defrule Simple-not-test
  (Test fact ?class)
  (not (and (Simple (OBJECT ?o&:(call ?o IsClass ?class)) (name ?name)
(class ?c))
            (bla (OBJECT ?o1))))
=>
  ...
)

causes an error with Jess 6.08, which seems to me not correct (??):

Simple-not-test: +1+1+1=1+1+1+2+2+t
Exception in thread "main" Jess reported an error in routine
ReteCompiler.eval
        while executing (batch itm.clp).
  Message: Unbound variable found in funcall: _2_o parsing defrule
Simple-not-test&1 .
  Program text: ( batch itm.clp )  at line 1.
        at jess.aq.a(Unknown Source)
        at jess.aq.a(Unknown Source)
        at jess.aq.a(Unknown Source)
        at jess.Rete.addDefrule(Unknown Source)
        at jess.Jesp.a(Unknown Source)
        at jess.Jesp.case(Unknown Source)
        at jess.Jesp.for(Unknown Source)
        at jess.Jesp.char(Unknown Source)
        at jess.Jesp.parse(Unknown Source)
        at jess.Batch.batch(Unknown Source)
        at jess.Batch.call(Unknown Source)
        at jess.dy.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.Jesp.a(Unknown Source)
        at jess.Jesp.char(Unknown Source)
        at jess.Jesp.parse(Unknown Source)
        at jess.Rete.executeCommand(Unknown Source)
        at MainInJava.main(MainInJava.java:23)

Funny is that this problem does not appear, if I change the order of the
two sub-rules in the (and ...) which would be the workaround. But I
don't know yet, whether it really works due to the problem I posted
earlier ...

--

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

Reply via email to