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

defdynamic

defdynamic( 
s_varName 
g_Value
[ t_docString ]
) 
=> g_value

Description

This syntax form sets the dynamic variable s_varName to g_value. In SKILL, this function works as a defvar. In Scheme, g_value is evaluated in the current lexical scope.

Arguments

s_varName

Name of the dynamic variable.

g_Value

New value of the dynamic variable.

t_docString

A documentation string (currently ignored).

Value Returned

g_value

Value of the dynamic variable.

Examples

kx
=> *Error* eval: unbound variable - kx
(inScheme x = 0 (defdynamic kx x "test") kx)
=> *Error* eval: unbound variable - kx
kx
=> 0

Related Topics

Function and Program Structure


Return to top
 ⠀
X