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

getd

getd( 
s_functionName 
) 
=> g_definition / nil

Description

Returns the function binding for a function name.

In Scheme mode, function bindings are treated as regular value bindings. Therefore, getd() returns any value bound to the symbol.

Arguments

s_functionName

Name of the function.

Value Returned

g_definition

If the function is defined in SKILL, returns the function object that the procedure function associates with a symbol.

If the function is primitive, the binary definition is printed.

nil

No function definition exists.

Examples

The function is primitive.

getd( 'alias ) 
=> nlambda:alias

The function is written in SKILL.

getd( 'edit ) 
=> funobj:0x24b478

Related Topics

Function and Program Structure


Return to top
 ⠀
X