National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: InterProcess Communication and Network Up: Streams and Input/Output Previous: Reader

Printer

The followings are special variables controlling printer's behaviors.

*print-case*
if this is :downcase, all symbols are printed in lowercase althought symbols are represented in uppercase internally unless they are escaped.
*print-circle*
print objects preserving recursive refernce
*print-object*
print the details of all objects
*print-structure*
print objects using #s format.
*print-level*
printable depth of a sequence
*print-length*
printable length of a sequence
*print-escape*
currently not used
*print-pretty*
currently not used
*print-base*
number base in printing; defaulted to decimal ten

In order to print objects containing recursive references so that they can be read back again, print the objects with both *print-circle* and *print-structure* set to T. Although most of the user defined objects can be printed in re-readable forms, classes, compiled-codes and packages cannot be dumped in that way, because classes and compiled-code include unrelocatable executable codes, and the rereading packages damages the consistency among symbols.

  print obj &optional stream [function]

  prin1 obj &optional stream [function]   princ obj &optional stream [function]   terpri &optional stream [function]   finish-output &optional stream [function]   princ-to-string x &optional (l 16) [function]   prin1-to-string x &optional (l 16) [function]   format stream format-string &rest args [function]
       (format t "~s ~s ~a ~a ~10,3f~%" "abc" 'a#b "abc" 'a#b 1.2)
       --->  "abc" |A#B| abc a#b     1.200

  pprint obj &optional (stream *standard-output*) (tab 0) (platen 75) [function]

  print-functions file &rest fns [function]   write-byte integer stream [function]
  write-word integer stream [function]
  write-long integer stream [function]
  • write integer as a one-, two- or four-byte binary.
  spaces n &optional stream [function]
  • outputs spaces n times.
  pf func &optional stream *standard-output*) [macro]
  • pretty-prints a function. Compiled function cannot be printed.
  pp-method class selector &optional (stream *standard-output*) [function]
  • pretty-prints the method defined in class by the name of selector.
  tprint obj tab &optional (indent 0) (platen 79) (cpos 0) [function]
  • print obj in tabular format.
  print-size obj [function]
  • returns inexact length of obj when it is printed.


next up previous contents index
Next: InterProcess Communication and Network Up: Streams and Input/Output Previous: Reader

Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996