next up previous

13.11.2.2 Displaying the List of Defmessage-handlers

With no arguments, this function lists all handlers in the system. With one argument, this function lists all handlers for the specified class. If the optional argument "inherit" is given, inherited message-handlers are also included. This function has no return value.

Syntax

(list-defmessage-handlers [<class-name> [inherit]])

Example

List all primary handlers in the system.

CLIPS> (defclass A (is-a USER))
CLIPS> (defmessage-handler A foo ())
CLIPS> (list-defmessage-handlers A)
foo primary in class A.
For a total of 1 message-handler.
CLIPS> (list-defmessage-handlers A inherit)
init primary in class USER.
delete primary in class USER.
print primary in class USER.
foo primary in class A.
For a total of 4 message-handlers.
CLIPS>


next up previous