Interacting with the Listener
Similarly, when you save a Listener, you are simply saving text. You are not saving a snapshot of the state of your current programming session. (It is possible to save snapshots with a different technique, as described in "Preserving programming sessions" on page 47.)
To create a new Listener at any time (whether or not there is already a Listener on the screen), choose New Listener from the File menu.
The following example shows that side-effects created through a Listener interaction persist, even after the Listener is closed.
? (defvar new-variable 100) NEW-VARIABLE ? new-variable 100 ;a variable evaluates to its value ? (+ new-variable 50) 150
? (* new-variable new-variable)
10000
Generated with Harlequin WebMaker