Product Documentation
Cadence SKILL++ Object System Reference
Product Version IC23.1, June 2023

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

g_object

Specifies a SKILL object, which could be a class or a generic function on which the dependent object needs to be set.

g_dependent

Specifies the dependent object that you want to set on the given object.

Value Returned

t

The dependent object was successfully registered.

nil

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

getDependents

removeDependent

updateDependent


Return to top
 ⠀
X