jscl icon indicating copy to clipboard operation
jscl copied to clipboard

SIMPLE-VECTOR

Open kasper-pixelated-noise opened this issue 2 years ago • 5 comments

ABCL:

CL-USER(1): (typep #(1 2) '(simple-vector 2))
T

JSCL

CL-USER>  (typep #(1 2) '(simple-vector 2))
ERROR: Unknown type-specifier (SIMPLE-VECTOR 2).

kasper-pixelated-noise avatar Mar 29 '22 09:03 kasper-pixelated-noise

Is it done? I'm still getting the same error.

davazp avatar Sep 02 '22 06:09 davazp

At now In JSCL any one-dimensional array - its a simple vector. I dont think that before the implementation of the subtypep, its necessary to multiply entities. In case of emergency - we has a deftype - any type at any time.

vlad-km avatar Sep 02 '22 07:09 vlad-km

Sure but then (typep #(1 2) '(simple-vector 2)) should return T instead of throwing the error?

davazp avatar Sep 02 '22 07:09 davazp

Hmmm I'll take care

vlad-km avatar Sep 02 '22 08:09 vlad-km

@davazp

Well To start

  1. I did not define such a type either in hardcode or as user-defined via DEFTYPE

  2. I would like to look at the type definition through the DEFTYPE of this type in order to first determine the scale of the problem and how to solve it

  3. In the general case, this problem is solved by a competent definition (DEFTYPE simple-vector...) on the user side

  4. For most users, there is no difference between vector and simple-vector other than the simple- name prefix. For a user who has this difference, there is a DEFTYPE (this is a custom case, completely on his side, with all the side effects of the current implementation).

vlad-km avatar Sep 08 '22 20:09 vlad-km