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

ilEquivalentSpecializers

ilEquivalentSpecializers( 
g_genericFunctionObj
g_specObj1
g_specObj2
)
=> t / nil

Description

Defines a method to check if two specializers are equal. This is required during method redefinition.

Arguments

g_genericFunctionObj

An instance of the ilGenericFunction class or a proxy class derived from it.

g_specObj1

An instance of the specializer class to be compared.

g_specObj2

The second instance of the specializer class to be compared.

Value Returned

t

The two specializers are equal.

nil

The two specializers are not equal.

Examples

An example of ilEquivalentSpecializer to compare that the objType is identical for two instances, needed for method redefinition:

defmethod(ilEquivalentSpecializers (_gf (spec1 abDbFigSpecializer) 
 (spec2 abDbFigSpecializer))
  spec1->objType==spec2->objType
)

Related Topics

Generic Specializers

ilGenerateSpecializer

Examples of How to use Custom Specializers in SKILL++ Methods


Return to top
 ⠀
X