Changeset 11044

Show
Ignore:
Timestamp:
01/17/06 19:20:50 (3 years ago)
Author:
rtoy
Message:

DESCRIBE had the test for adjustable arrays backwards, so it said all
non-adjustable arrays were adjustable, and vice versa.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/code/describe.lisp

    r10293 r10860  
    152152    (cond ((= rank 1) 
    153153           (format t "~&~S is a ~:[~;displaced ~]vector of length ~D." x 
    154                    (and (array-header-p x) (%array-displaced-p x)) (length x)) 
     154                   (and (array-header-p x) (%array-displaced-p x)) 
     155                   (array-dimension x 0)) 
    155156           (if (array-has-fill-pointer-p x) 
    156157               (format t "~&It has a fill pointer, currently ~d" 
     
    163164           (format t "~%Its dimensions are ~S." (array-dimensions x)))) 
    164165    (unless (eq t element-type) 
    165       (format t "~&Its element type is specialized to ~S." element-type)))) 
     166      (format t "~&Its element type is specialized to ~S." element-type)) 
     167    (unless (adjustable-array-p x) 
     168      (format t "~&It is adjustable.")))) 
    166169 
    167170(defun describe-fixnum (x)