set, setq,
setqq
set, setq,
setqq — assign a value to a symbol.
set (symbol, s_exp)
setq (!symbol, s_exp)
setqq (!symbol, !s_exp)
symbolA symbol.
s_expAny Gamma or Lisp expression.
The s_exp argument.
These functions assign a value to a symbol, and are the functional
equivalent of the = (assignment) operator. Normally in
Gamma the = operator is used for assignment, but these
functions give more control over evaluation of symbols and expressions at
the point of assignment.
The set function evaluates both of its arguments.
setq evaluates only its second argument and
setqq evaluates neither of its arguments. The most
commonly used of these functions is setq. A symbol's
value is the value returned as a result of evaluating that symbol. Symbols
constitute the Lisp mechanism for representing variables. These functions
can only affect the value of a symbol in the current scope.
Gamma>setq(y, 6);6Gamma>setq(x, #y);yGamma>set(x, 5);5Gamma>x;yGamma>y;5Gamma>