pprint-object [Function]


Purpose

The pprint-object function pretty-prints the definition of an object, or returns a form representing the object's definition.

Syntax

pprint-object object &optional stream

Arguments

The object argument is any object.

The stream argument is a Lisp stream. This defaults to *standard-output*.

Value

This function pretty-prints a definition for object to stream, and returns nil. If stream is explicitly set to nil, then nothing is printed, and an s-expression representing the object's definition is returned.

Examples

(pprint-object (fc Box)) --> 
    (defconcept Box 
      :is-primitive Container) 
(pprint-object (fc Box) nil) ==> 
    (DEFCONCEPT BOX :IS-PRIMITIVE CONTAINER)

See Also

Last modified: Jun 1 1995