RE: JESS: Remove all references pointing to the retracted fact from the slots

2005-06-29 Thread Alan Moore
Try this: (deftemplate Person (slot Name (type STRING)) (multislot Ancestors) ) (assert (Person (Name "a") (Ancestors (assert (Person (Name "b"))) (assert (Person (Name "c"))) ) ) ) (defrule removePersonReferences (remove-person ?name) ?person <

JESS: Remove all references pointing to the retracted fact from the slots

2005-06-29 Thread portalguy
Hi, I'm trying to find the quickest way to setting references in slots to a retracted fact to nil or remove them if in a multislot. For instance if I have the following template: (deftemplate Person (slot Name (type STRING)) (multislot Ancestors) ) and the following facts: (assert (Person (Name