ConsPrinter

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

Topic revision: r4 - 2009-03-11 - 20:26:22 - MadelineWilliams
 
Home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback