Next: Functions, Previous: Evaluation, Up: The language [Contents][Index]
In Lisp, symbols are used to represent variables. Each symbol contains a value slot that is used to contain the value of the symbol when it used as a variable.
The normal way to obtain the current value of a variable is simply to
evaluate the symbol of the same name (i.e. write the name of the
variable in your program). The symbol-value function can be used
to evaluate variables whose names not known statically.
This function returns the value of the symbol variable in the current environment.
| • Local Variables: | Creating temporary variables | |
| • Setting Variables: | Altering a variable’s value | |
| • Scope and Extent: | Technical jargon | |
| • Void Variables: | Some variables have no values | |
| • Defining Variables: | How to define a variable before using it | |
| • Fluid Variables: | Another dynamic binding method |