I have the following template:
(deftemplate person (slot name) (slot age))
and the following facts
(assert (person (name X) (age 30)))
(assert (person (name Y) (age 31)))
I use (find-fact) to get the fact that has name X
(bind ?f (find-fact ((?p person)) (eq ?p:name X)))
Now ?f is a list of one element containing the fact address of the
one with the name X
Then i do
(bind ?x (nth$ 1 ?f))
So now ?x is the address of the fact with the name X
At this point how can i access the age slot of this fact?
?x:age does not work
Any idea how can i do this?