Hi Ernest,
I tried the example you wrote and I've got this is this the normal new
behavoir or a bug?
Jess> (do-backward-chaining factorial)
TRUE
Jess> (defrule print-factorial-10
(factorial 10 ?r1)
=>
(printout t "The factorial of 10 is " ?r1 crlf))
TRUE
Jess> (defrule do-factorial
(need-factorial ?x ?)
=>
(printout t "( Calculating the factorial of " ?x "... )" crlf)
(bind ?r 1)
(bind ?n ?x)
(while (> ?n 1)
(bind ?r (* ?r ?n))
(bind ?n (- ?n 1)))
(assert (factorial ?x ?r)))
TRUE
Jess> (reset)
TRUE
Jess> (facts)
f-0 (initial-fact)
f-1 Rete Exception in routine Value::listValue. <<<<<< this line
Message: Not a list: nil type = 1.
For a total of 2 facts.
TRUE
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------