Dribble Files - Saving a Lisp Session
Purpose
w Sometimes you want to save a Lisp session for study later.
w This is especially useful for the HW exercises.
w You must already be in the Lisp environment to use this.
w To invoke this feature of Lisp, type: (dribble '<file-name>)
Example
We are already in CLisp; notice the Lisp numbering.
[1]> (dribble 'f1)
#<OUTPUT BUFFERED
FILE-STREAM CHARACTER #P"f1" @1>
[2]> (+ 3 4)
7
[3]> (exit)
We are leaving CLisp, as it bids us a fond
farewell.
Bye.
We are back in Unix. Notice the Unix
numbering
18 -> more f1
We are asking Unix to show the file 'f1' on the
screen;
and here is the file of our Lisp session.
#<OUTPUT BUFFERED
FILE-STREAM CHARACTER #P"f1" @1>
[2]> (+ 3 4)
7
[3]> (exit)
Bye.