Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

ilRemoveMethod

ilRemoveMethod( 
s_genFunction 
g_className 
[ g_method ]
) 
=> t / nil

Description

Removes a given method from a generic function.

An alias to this function with the name removeMethod exists.

Arguments

s_genFunction

Name of the generic function from which the method needs to be removed.

g_className

Name of the class or a list of classes to which the generic function belongs.

g_method

Specifies the method qualifier. It can have one of the following values: '@before, '@after, and '@around. If this value is not provided or is specified as nil, then the primary method is removed.

Value Returned

t

The method is successfully removed.

nil

The method is not removed.

Examples

To remove the object myClass from the function myFunction:

ilRemoveMethod('myFunction 'myClass)
ilRemoveMethod('myFunB '(classX classY) '@after)

Related Topics

Debug Functions


Return to top
 ⠀
X