0.8.10.63:
[sbcl.git] / tests / pprint.impure.lisp
index a88e54a..5317d7a 100644 (file)
           (write '`(lambda (,x)) :stream s :pretty t :readably t))
         "`(LAMBDA (,X))"))
 \f
-;;; SET-PPRINT-DISPATCH should accept function name arguments
+;;; SET-PPRINT-DISPATCH should accept function name arguments, and not
+;;; rush to coerce them to functions.
+(set-pprint-dispatch '(cons (eql frob)) 'ppd-function-name)
 (defun ppd-function-name (s o)
   (print (length o) s))
-(set-pprint-dispatch '(cons (eql frob)) 'ppd-function-name)
 (let ((s (with-output-to-string (s)
           (pprint '(frob a b) s))))
   (assert (position #\3 s)))