set
 
 
 

Sets the value of a quoted symbol name to an expression

(set sym expr) 

The set function is similar to setq except that set evaluates both of its arguments whereas setq only evaluates its second argument.

Arguments

sym

A symbol.

expr

An AutoLISP expression.

Return Values

The value of the expression.

Examples

Each of the following commands sets symbol a to 5.0:

(set 'a 5.0)
(set (read "a") 5.0)
(setq a 5.0)

Both 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:

Command: (set (read "a") 5.0)

5.0

Command: (setq (read "a") 5.0)

; *** ERROR: syntax error

See Also

500 Internal Server Error

Internal Server Error

The 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.