(let ((blob (make-array 2 :element-type '(unsigned-byte 8))))
(setf (aref blob 0) +foo+)
(setf (aref blob 1) +bar+)
blob))
But surely I ought to be able to use :initial-contents to populate the
array. I just haven't been able to find the right incantation that
makes everyone happy.
Any help appreciated.
Not sure how you are specifying the initial-contents, but this worked
for me:
(make-array 2 :element-type '(unsigned-byte 8) :initial-contents (list
+foo+ +bar+))
or
(make-array 2 :element-type '(unsigned-byte 8) :initial-contents
(vector +foo+ +bar+))
HTH,
Tom
What about:
(let ((blob (make-array 2 :element-type '(unsigned-byte 8)
:initial-contents (list +foo+ +bar+))))
blob)
?
Alberto
I could have sworn I tried that. Thanks for the help.