Sets the value of a quoted symbol name to an expression
(set sym expr)
set function is similar to setq except that set evaluates both of its arguments whereas setq only evaluates its second argument.
TheArguments
A symbol.
An AutoLISP expression.
Return Values
The value of the expression.
Examples
a to 5.0:
Each of the following commands sets symbol(set 'a 5.0)
(set (read "a") 5.0)
(setq a 5.0)
set and setq expect a symbol as their first argument, but set accepts an expression that returns a symbol, whereas setq does not, as the following shows:
BothCommand: (set (read "a") 5.0)
5.0
Command: (setq (read "a") 5.0)
; *** ERROR: syntax error
setq function.
TheThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@entercad.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.