Changeset 10626
- Timestamp:
- 02/02/05 17:58:47 (4 years ago)
- Location:
- trunk/src/code
- Files:
-
- 2 modified
-
format.lisp (modified) (1 diff)
-
print.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/code/format.lisp
r10597 r10606 2075 2075 (*outside-args* args)) 2076 2076 (catch 'up-and-out 2077 (do-guts arg arg) 2078 args))2077 (do-guts arg arg)) 2078 args) 2079 2079 (do-guts orig-args args))) 2080 2080 (do-loop (orig-args args) -
trunk/src/code/print.lisp
r10581 r10623 283 283 (pprint-logical-block (stream nil :prefix "#<" :suffix ">") 284 284 (print-description))) 285 ((and *print-level* (>= *current-level* *print-level*)) 286 (write-char #\# stream)) 285 287 (t 286 288 (write-string "#<" stream) … … 1001 1003 |# 1002 1004 1005 1006 (defun array-readably-printable-p (array) 1007 (and (eq (array-element-type array) t) 1008 (let ((zero (position 0 (array-dimensions array))) 1009 (number (position 0 (array-dimensions array) 1010 :test (complement #'eql) 1011 :from-end t))) 1012 (or (null zero) (null number) (> zero number))))) 1013 1014 1003 1015 ;;;; Recursive objects. 1004 1016 … … 1040 1052 (1 (write-char #\1 stream))))) 1041 1053 ((and *print-readably* 1042 (not ( eq (array-element-type vector) 't)))1054 (not (array-readably-printable-p vector))) 1043 1055 (output-array vector stream)) 1044 1056 (t
