sasagawa888 / eisl

ISLisp interpreter/compiler
Other
275 stars 23 forks source link

`create-array` when given one dimension parameter returns <basic-vector> instead of <general-vector> #308

Closed arvyy closed 6 months ago

arvyy commented 6 months ago

Under create-array spec says:

The result is of class <general-vector> if there is only one dimension, or of class <general-array*> otherwise.

 (general-vector-p (create-array '(1) 1)) ;; => nil, expected t

Tested on build from commit 5b6aca790ca23e56ab678a9e877b8ce81ec09355

sasagawa888 commented 6 months ago

Fixed. Thank you.

Easy-ISLisp Ver3.71
>  (general-vector-p (create-array '(1) 1))
T
>