removes all clauses identified by its predicate indicator. ...
Move to
Next Prev
Up Top
See also
abolish/1
asserta/1
assertz/1
collect/3
load/1
unload/1
loaded/1/2
retract/1
retractall/1
IF Computer > MINERVA > Manual > Reference > Predicates > Clause creation and destruction > abolish/1

abolish/1

removes all clauses identified by its predicate indicator.

abolish(+Predicate)

abolish/1 removes all clauses identified by Predicate from the database as if they had never existed.

Arguments

Predicate              compound term with form: atom/integer

Examples

There exists a database with clauses:
   colour(blue).
   colour(yellow).
   colour(blue, yellow, green).
   add(X,Y,Z) :- Z is X+Y.

abolish(colour/1). Succeeds, leaving the database with the clauses
colour(blue,yellow, green).
add(X,Y,Z) :- Z is X+Y.
abolish(something/4). Succeeds, leaving the database unchanged.

Standard

This predicate is part of the ISO-Prolog Standard.

See also

asserta/1, assertz/1, collect/3, load/1, unload/1, loaded/1/2, retract/1, retractall/1.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/clause_creat_destruct/abolish/home_en.html
published 2008/7/21 update 2003/2/26 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS