element-type in array..
Posted: Fri Oct 26, 2012 1:05 pm
HI
If I try to make a resizable string with make-array, but error raises with vector-push..:
....?it works without specify :element-type.....but why it's atype error?? 'a' is a char...
thanks in advance!!!
If I try to make a resizable string with make-array, but error raises with vector-push..:
Code: Select all
(defparameter str (make-array 10 :fill-pointer 0 :adjustable t :element-type 'character))
>STR
(vector-push 'a' str) ;;error raise:
value STR is not of the expected type (AND
ARRAY
(SATISFIES
ARRAY-HAS-FILL-POINTER-P)).
[Condition of type TYPE-ERROR]
thanks in advance!!!