home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!network.ucsd.edu!news.acns.nwu.edu!uicvm.uic.edu!u37956
- Organization: University of Illinois at Chicago
- Date: Wednesday, 11 Nov 1992 11:38:30 CST
- From: <U37956@uicvm.uic.edu>
- Message-ID: <92316.113830U37956@uicvm.uic.edu>
- Newsgroups: comp.lang.prolog
- Subject: Retract static clauses, can't ?
- Lines: 19
-
- Using Sicstus2.1 Prolog, I want to retract some facts (or clauses) which
- were loaded from a file.
- Suppose in mfile, there are facts:
- johnlikes(mary).
- marylikes(tom).
-
- After starting prolog, i load the facts in the following way:
- |- ? [mfile].
-
- When I try to remove a fact, such as:
- |- ? retract((marylikes(tom))).
-
- I got error message which says static terms can't be retracted.
-
- How can i retract the facts and how can i made the facts dynamic ?
-
- Could anyone tell me?
-
- Thanks in advance.
-