print-instance-slotsGBBopen Toolspush-aconsprintvGoTo Top

printv   form* => result*[Macro]

Purpose
Assist debugging by printing forms and the results of evaluating them to *trace-output*.

Package   :gbbopen-tools (home package is :module-manager)

Module   :module-manager

Arguments and values

forms     An implicit progn of forms to be evaluated and printed
results     The values returned by evaluating the last form

Returns
The values returned by evaluating the last form.

Description
Evaluates forms, printing the form and the result values of each evaluation to *trace-output*. Any form that is a string (before evaluation) is simply printed without enclosing double-quote characters.

See also
    object-address

Examples

  > (printv (list 1 2) (list 3 4) '"A string" 
            "Return multiple values:" (values 5 6))
  ;;  (list 1 2) => (1 2)
  ;;  (list 3 4) => (3 4)
  ;;  '"A string" => "A string"
  ;; Return multiple values:
  ;;  (values 5 6) => 5; 6
  5
  6
  > (printv *package* (object-address *package* 't))
  ;;  *package* => #<The GBBOPEN-USER package>
  ;;  (object-address *package* 't) => "71b32f5a"
  "71b32f5a"
  >

Note
This variable is defined in the :module-manager module in order to make it available as early as possible.


The GBBopen Project


print-instance-slotsGBBopen Toolspush-aconsprintvGoTo Top