The
ConsPrinter is implemented according to the specifications of the
Lisp Hyperspec. For detailed information and examples of Cons formatting, visit the following link:
22.1.3.5 Printing Lists and Conses
Implementation
First, two boolean variables, printAllLengths and printAllLevels, are instantiated to "false". If the values of
*PRINT-LENGTH* and
*PRINT-LEVEL* are Nil, these variables are set to true. If
*PRINT-LEVEL* is 0, "#" is printed. If not, a "(" is printed, and then printObject is called for each element in the Cons. ")" is printed each after each printObject call.
--
RyanBuff - 28 Apr 2006