Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/types.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,17 @@ be affected.
(defun-speedy box-array (object)
(assert (not (cdr (array-dimensions object))))
(declaim (notinline general-box-array))
(etypecase object
(simple-array
(typecase object
,@(loop for (class . type) in types
collect `((array ,type) (,(specialized-class-array-boxer-name class) object)))
(t (general-box-array object))))
(array
(general-box-array object)))))))
(handler-case
(etypecase object
(simple-array
(typecase object
,@(loop for (class . type) in types
collect `((array ,type) (,(specialized-class-array-boxer-name class) object)))
(t (general-box-array object))))
(array
(general-box-array object)))
(type-error (err)
(general-box-array object)))))))


(defmacro define-box-array (array-boxer-name box-class lisp-type &key convertor (array-class 'mm-array))
Expand Down