MAKE-ARRAY makes the unexpected array element type upgrade
Bug #560318 reported by
Roman Marynchak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Low
|
Unassigned |
Bug Description
This form
(make-array 8 :element-type 'foo)
surprisingly returns #(0 0 0 0 0 0 0 0) instead of claiming about the undefined type specifier FOO.
One may think that this is a kind of an implicit array element type upgrade to T... But why this form
(upgraded-
claims about the undefined type FOO instead of returning T in this case?
I think that MAKE-ARRAY should verify :element-type value to be a valid type specifier.
To post a comment you must log in.
Without checking CLHS requirements, this seems sensible.