Name

set

Usage

builtin-function

Syntax

(set sym value)

Description

Assigns value to the global or dynamic variable named by the value of sym. Does not work for lexical variables.

user 1 > (undef 'a137)
it: null
user 2 > (setq x 'a137)
it: a137
user 3 > (set x 1)
Undefined variable: a137
user 4 1 > (def a137 2)
it: a137
user 5 1 > (set x 1)
it: 1
user 6 1 > a137
it: 1