Hi everybody,
 
I tried this little example that someone asked in a previous message :
 
(deftemplate alphalist (multislot alpha))
 
(assert (alphalist (alpha (create$ a b c ))))  
 
Dr. Friedman-Hill suggested to add values with the following rule :
 
(defrule modify-slot
?f <- (alphalist (alphalist $?c))
 =>
 (modify ?f (alpha (create$ ?c d e f))))
 
But Jess complains because (alphalist (alphalist $?c)) is not true. So I changed the rule for :
 
(defrule modify-slot
?f <- (alphalist (alpha $?c))
 =>
 (modify ?f (alpha (create$ ?c d e f))))
 
However when I type (run), I get no response, the cursor is still blinking, and even after a long delay, Jess never prompts again. What is wrong with this rule ?
 
I know this is a quite basic question but any help would be appreciate.
 
Best regards,
 
Nicolas

Reply via email to