Hi,
This e-mail is a follow-up on the issue related to slot-specific that I
discussed a couple of days ago. I am using Jess 71b1
I am trying to figure out how to properly use slot-specific and/or no-loop.
I now got to the following simple example:
;;;
(deftemplate foo
(declare (slot-specific TRUE))
(slot bar (default 0)) )
(defrule r
(declare (no-loop TRUE))
?f <- (foo (bar ?n))
(a ?x)
=>
(printout t ?n crlf)
(modify ?f (bar (+ ?n 1))) )
(assert (foo))
(assert (a 1))
(assert (a 2))
(run)
;;;
Now, why does the rule only fire once? There are two 'a' facts there.
Henrique
--------------------------------------------------------------------
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]
--------------------------------------------------------------------