next up previous

12.13.1 Getting the List of Defglobals

The function getdefgloballist returns a multifield value containing the names of all global variables that are currently defined.

Syntax

(getdefgloballist)

Example

CLIPS> (clear)
CLIPS> (get-defglobal-list)
()
CLIPS> (defglobal ?*x* = 3 ?*y* = 5)
CLIPS> (get-defglobal-list)
(x y)
CLIPS>

12.13.2 Determining the Module in which a Defglobal is Defined

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

Syntax

(defglobalmodule <defglobal-name>)


next up previous