defdynamic
defdynamic(s_varNameg_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
Value Returned
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