set
set(s_variableNameg_newValue[e_environment] ) =>g_result
Description
Sets a variable to a new value. Similar to setq but the first argument for set is evaluated.
The set function is similar to the setq function, but unlike setq, the first argument for set is evaluated. This argument must evaluate to a symbol, whose value is then set to g_newValue.
Arguments
|
If this argument is given, SKILL++ semantics is assumed. The forms entered will be evaluated within the given (lexical) environment. |
Value Returned
Examples
y = 'a
=> a ; Sets y to the constant a.
set (y 5) => 5 ; Sets the value of y to 5.
y
=> a
a
=> 5
Related Topics
Return to top