2 Starting Up
The source code for the program is in the file
"queue.lisp". The procedures defined in the program become available for use when
"queue.lisp" is loaded into the current Lisp image.
This sample program illustrates the use of data abstraction in Lisp. The procedures to add and remove elements of the queue are independent of the implementation of the queue. The queue itself is implemented as a structure, a data object with a series of named slots. Lisp automatically creates functions to construct, access, and copy instances of a structure.
The source code demonstrates some basic characteristics of good programming style in Lisp, such as using documentation strings to document procedures and indenting the source code to make it easier to read. The source code also includes type information that allows the Compiler to generate more efficient compiled code.
Generated with Harlequin WebMaker