Package: closer-mop

Generic Function add-dependent

Lambda List

add-dependent (metaobject dependent)

Arguments

The metaobject argument is a class or generic function metaobject.
The dependent argument is an object.

Return Value

The value returned by this generic function is unspecified.

Details

This generic function adds dependent to the dependents of metaobject. If dependent is already in the set of dependents it is not added again (no error is signaled).

The generic function map-dependents can be called to access the set of dependents of a class or generic function. The generic function remove-dependent can be called to remove an object from the set of dependents of a class or generic function. The effect of calling add-dependent or remove-dependent while a call to map-dependents on the same class or generic function is in progress is unspecified.

The situations in which add-dependent is called are not specified.

Methods

add-dependent ((class standard-class) dependent)
No behavior is specified for this method beyond that which is specified for the generic function. This method cannot be overridden unless the following methods are overridden as well:

remove-dependent (standard-class t)
map-dependents (standard-class t)


add-dependent ((class funcallable-standard-class) dependent)
No behavior is specified for this method beyond that which is specified for the generic function. This method cannot be overridden unless the following methods are overridden as well:

remove-dependent (funcallable-standard-class t)
map-dependents (funcallable-standard-class t)


add-dependent ((generic-function standard-generic-function) dependent)
No behavior is specified for this method beyond that which is specified for the generic function. This method cannot be overridden unless the following methods are overridden as well:

remove-dependent (standard-generic-function t)
map-dependents (standard-generic-function t)

Notes

See the "Dependent Maintenance Protocol" section for remarks about the use of this facility.