All Manuals > KnowledgeWorks and Prolog User Guide > 7 Reference Guide

NextPrevUpTopContentsIndex

undefrule

Macro
Summary

Removes a rule.

Signature

undefrule rule-name &rest ignore

Arguments

rule-name

A symbol which names a rule.

ignore

Ignored arguments.

Description

Removes the rule named rule-name and any unfired instantiations of that rule.

The ignore arguments are provided so that "un" may be prepended to a rule definition in an editor buffer and evaluated to remove the rule.

Examples
(undefrule my-rule1)
See also

defrule


KnowledgeWorks and Prolog User Guide (Unix version) - 6 Dec 2011

NextPrevUpTopContentsIndex