next up previous

12.16.1.14 Getting the List of Superclasses for a Class

This function groups the names of the direct superclasses of a class into a multifield variable. If the optional argument ìinheritî is given, indirect superclasses are also included. A multifield of length zero is returned if an error occurs.

Syntax

(class-superclasses <class-name> [inherit])

Example

CLIPS> (class-superclasses INTEGER)
(NUMBER)
CLIPS> (class-superclasses INTEGER inherit)
(NUMBER PRIMITIVE OBJECT)
CLIPS>


next up previous