This function groups the names of the classes which provide facets for a slot of a class into a multifield variable. In the case of an exclusive slot, this multifield will be of length one and contain the name of the contributing class. However, composite slots may have facets from many different classes (see section 9.3.3.6). A multifield of length zero is returned if an error occurs.
Syntax
(slot-sources <class-name> <slot-name>)
Example
CLIPS> (clear) CLIPS> (defclass A (is-a USER) (slot x (access read-only))) CLIPS> (defclass B (is-a A) (slot x (source composite) (default 100))) CLIPS> (defclass C (is-a B)) CLIPS> (slot-sources A x) (A) CLIPS> (slot-sources B x) (A B) CLIPS> (slot-sources C x) (A B) CLIPS>