[Ecls-list] ADJUST-ARRAY looses original element-type
Goffioul Michael
goffioul at imec.be
Fri Apr 29 08:32:20 UTC 2005
Following my previous mail, I also noticed that ADJUST-ARRAY looses the actual
element-type:
> (setq x (make-array 5 :element-type 'fixnum :adjustable t))
#(0 0 0 0 0)
> (adjust-array x 10)
#(0 0 0 0 0 NIL NIL NIL NIL NIL)
> x
#(0 0 0 0 0 NIL NIL NIL NIL NIL)
> (array-element-type x)
T
I'm not sure whether this is ANSI-compliant, but intuitively I would expect that
the element-type is unchanged when you don't specify it explicitely.
Michael.
More information about the ecl-devel
mailing list