next up previous

12.15.1 Getting the List of Defgenerics

The function get-defgeneric-list returns a multifield value containing the names of all defgeneric constructs that are currently defined.

Syntax

(get-defgeneric-list)

Example

CLIPS> (clear)
CLIPS> (get-defgeneric-list)
()
CLIPS> (defgeneric foo)
CLIPS> (defgeneric bar)
CLIPS> (get-defgeneric-list)
(foo bar)
CLIPS>

12.15.2 Determining the Module in which a Generic Function is Defined

This function returns the module in which the specified defgeneric name is defined.

Syntax

(defgeneric-module <defgeneric-name>)


next up previous