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

removeMethod

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

Description

Removes a given method from a generic function.

For compatibility with previous releases, an alias to this function with the name, ilRemoveMethod exists.

Arguments

s_genFunction

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

g_className

Name of the class or 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

removeMethod('my_function 'my_class '@before)
removeMethod('myFunB '(classX classY) '@after)

Related Topics

Generic Functions and Methods


Return to top
 ⠀
X