2009-02-16 22:28:31 |
Tobias C. Rittweiler |
description |
The following emits a compiler-note complaining about #\0 not being
type 'bit:
(defun foo1 (size)
(make-array size :element-type 'bit-vector :initial-element #\0))
However, the following does not emit such a note:
(defun foo2 (size)
(make-sequence 'bit-vector size :initial-element #0))
And, to big surprise, the following does _not_ emit any note either
(defun foo3 (size)
(values (make-sequence 'bit-vector size :initial-element #0)
(make-array size :element-type 'bit-vector :initial-element #\0)))
On SBCL "1.0.25.6". |
The following emits a compiler-note complaining about #\0 not being
type 'bit:
(defun foo1 (size)
(make-array size :element-type 'bit :initial-element #\0))
However, the following does not emit such a note:
(defun foo2 (size)
(make-sequence 'bit-vector size :initial-element #0))
And, to big surprise, the following does _not_ emit any note either
(defun foo3 (size)
(values (make-sequence 'bit-vector size :initial-element #0)
(make-array size :element-type 'bit :initial-element #\0)))
On SBCL "1.0.25.6". |
|