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

ilArgMatchesSpecializer

ilArgMatchesSpecializer( 
g_genericFunctionObj
g_specObj
g_argument
)
=> t / nil

Description

Determines whether a argument passed to the generic function at run time matches a particular specializer class, so that it then knows which method should be called.

Arguments

g_genericFunctionObj

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

g_specObj

An instance of the specializer class being compared against.

g_argument

The argument to the method that is being compared.

Value Returned

t

The given argument matches.

nil

The given argument does not match.

Examples

defmethod(ilArgMatchesSpecializer (_gf (spec abDbFigSpecializer) (arg dbobject)) 
 spec->objType==arg->objType
)

Related Topics

Generic Specializers

ilGenerateSpecializer

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


Return to top
 ⠀
X