addDependent
addDependent(g_object g_dependent) =>t | nil
Description
Registers a dependent object for given object. SKILL checks if g_dependent already exists as a dependent of g_object (using the eqv operator), then g_dependent is not registered again and nil is returned.
Arguments
|
Specifies a SKILL object, which could be a class or a generic function on which the dependent object needs to be set. |
|
|
Specifies the dependent object that you want to set on the given object. |
Value Returned
|
The dependent object is already registered for the given object. |
Examples
addDependent( findClass('class) 'dep1)
This example registers the dependent object, dep1, for an object of class, class
Related Topics
Dependency Maintenance Protocol Functions
Return to top