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

undefrule Macro

Summary

Removes a rule.

Package

kw

Signature

undefrule rule-name &rest ignore

Arguments
rule-name
A symbol which names a rule.
ignore
Ignored arguments.
Description

The macro undefrule removes the rule named rule-name and any unfired instantiations of that rule.

ignore is not used and is only 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 (Windows version) - 01 Dec 2021 19:36:03