Re: What's the purpose of CLEANUP rule in mab-clos.lisp example?

[email protected] Sun, 8 May 2005 18:49:56 -0400
Newsgroups gmane.lisp.lisa.general
Message-ID <[email protected]>
This is just an example of how one can do pattern matching on a clos 
hierarchy. There are classes in mab-clos that derive from mab-fundamental; 
the cleanup rule simply matches all instances of class mab-fundamental and 
retracts them.

dey

On Friday 06 May 2005 02:48 pm, Paolo Amoroso wrote:
> What is the purpose of the CLEANUP rule:
>
>   ;;; Retract every object whose ancestor is an instance of
> MAB-FUNDAMENTAL...
>
>   (defrule cleanup (:salience -100)
>     (?fact (mab-fundamental))
>     =>
>     (retract ?fact))
>
> in the mab-clos.lisp Lisa example?  Why is it necessary to retract
> objects whose ancestors are instances of MAB-FUNDAMENTAL?
>
>
> Paolo


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20