MKCL icon indicating copy to clipboard operation
MKCL copied to clipboard

make-sequence doesn't understand derived types

Open davidmullen opened this issue 1 year ago • 1 comments

For example:

(deftype buffer32 (&optional (size '*))
  `(simple-array (unsigned-byte 32) (,size)))

Then:

> (make-sequence 'buffer32 1024)


Debugger called in: #<thread "Initial" active (3405) 0x7f49db5ee740 7f49d8ba3000>.

#<a SIMPLE-ERROR 139955071156416>:
    Cannot find the element type in vector type BUFFER32

davidmullen avatar Apr 26 '24 01:04 davidmullen

I will rewrite cl:make-sequence in the coming days. It is just too ridiculous as it stands right now. Let's keep this issue open until the rewrite is done.

jcbeaudoin avatar Apr 28 '24 05:04 jcbeaudoin