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 that is not the keyword symbol :hr

Returns
The values returned by evaluating the last form that is not the keyword symbol :hr

Description
The following is performed for each form in forms:

See also
    printvot

Examples

  > (printv :hr "PRINTV example" (list 1 2) (list 3 4) '"A quoted string" 
            "Return no values:" (values)
            "Return multiple values:" (values 5 6) :hr)
  ;; ------------------------------------------------------------
  ;; PRINTV example
  ;;   (list 1 2) => (1 2)
  ;;   (list 3 4) => (3 4)
  ;; Return no values:
  ;;   (values) => [returned 0 values]
  ;;   '"A quoted string" => "A quoted 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 macro 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