Specializing on the second argument to PRINT-OBJECT

Specializing on the second argument to PRINT-OBJECT has unportable
effects,
and also interferes with precomputation of print functions for
exceptional
situations.
This commit is contained in:
gheber 2015-01-01 10:40:24 -06:00
parent 8043c1edfd
commit b3627d3b5d
5 changed files with 23 additions and 14 deletions

View File

@ -7,7 +7,7 @@
(values))
;;(PROCLAIM '(OPTIMIZE (speed 3) (safety 1) (space 0) (debug 0)))
(DECLAIM '(OPTIMIZE (speed 0) (space 0) (debug 3)))
(DECLAIM (OPTIMIZE (speed 0) (space 0) (debug 3)))
;; Don't mess with ANSI's definition of DEFCONSTANT!

View File

@ -7,6 +7,8 @@
;; chain-complexes.lisp
?2
?3
+TOO-MUCH-TIME+
BUILD-CHCM
BUILD-MRPH

7
run-kenzo-test.lisp Normal file
View File

@ -0,0 +1,7 @@
#+sbcl(require 'asdf)
(asdf:operate 'asdf:load-op 'kenzo-test)
(in-package :kenzo-test)
(run!)
#+sbcl(sb-ext:exit)

View File

@ -13,7 +13,7 @@
#+clisp(eval-when (:compile-toplevel :load-toplevel :execute)
(setf (ext:package-lock :clos) nil))
(DEFMETHOD PRINT-OBJECT ((rdct reduction) (stream stream))
(DEFMETHOD PRINT-OBJECT ((rdct reduction) stream)
(the reduction
(progn
(format stream "[K~D Reduction K~D => K~D]"
@ -182,7 +182,7 @@
#+clisp(eval-when (:compile-toplevel :load-toplevel :execute)
(setf (ext:package-lock :clos) nil))
(DEFMETHOD PRINT-OBJECT ((hmeq homotopy-equivalence) (stream stream))
(DEFMETHOD PRINT-OBJECT ((hmeq homotopy-equivalence) stream)
(the homotopy-equivalence
(progn
(format stream "[K~D Homotopy-Equivalence K~D <= K~D => K~D]"