Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

arglist

arglist( 
g_function 
) 
=> l_argumentList

Description

Returns the number and types of arguments expected for a function. Also checks if the specified function is a binary object,

This function is useful for determining how many arguments a function takes and what they are.

If the function is read-protected, the arguments are still returned. If the function is a primitive (binary), the argument list is based on the type template for the function specified. If the function is defined in SKILL, the argument list in the function definition is returned.

Arguments

g_function

Name of the function or the symbol whose argument list you want to see.

Value Returned

l_argumentList

Number and types of arguments for g_function.

Examples

The first argument of rexMatchp must be a string and the second must be a string or symbol.

arglist('rexMatchp) 
=> ( t_string S_stringSymbol "tS")

Related Topics

Core Functions


Return to top
 ⠀
X