next up previous

12.8.1 Getting the List of Deftemplates

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

Syntax

(get-deftemplate-list)

Example

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

12.8.2 Determining the Module in which a Deftemplate is Defined

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

Syntax

(deftemplate-module <deftemplate-name>)


next up previous