7 The Listener
12at 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 so
12 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
12has 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 >
12. The result of evaluating the form is the value to which
valhas been set, and thus the listener prints
12below the form typed at the prompt.
12is associated with
12is printed below it.
(+ val val val).
vals, is evaluated, and
36is printed below it.
Generated with Harlequin WebMaker