
7 The Listener
12 at the prompt, and press Return.
Any Common Lisp form typed at the prompt is evaluated and its results printed immediately below in the listener.
Common Lisp evaluates this input and prints the result of that evaluation. When Common Lisp evaluates a number, the result is the number itself, and so12 is printed out:
PROMPT > 12 12 PROMPT >When results are printed in the listener, they start on the line following the last line of input. The
12 has been printed immediately below the first prompt, and below that, another prompt has been printed.
* at the current prompt.
PROMPT > * 12 PROMPT > >
* always has as its value the result of the previous expression; in this case,12, which was the result of the expression typed at the first prompt. For a full description, see the ANSI standard for Common Lisp (ANSI X3.226:1994).
(setq val 12) at the current prompt.
PROMPT > (setq val 12) 12 PROMPT >
val to12. The result of evaluating the form is the value to whichval has been set, and thus the listener prints12 below the form typed at the prompt.
12 is associated withval.
val.
12 is printed below it.
(+ val val val).
vals, is evaluated, and36 is printed below it.

Generated with Harlequin WebMaker