Lisp HUG Maillist Archive

Shouldn't I be able to "make-array" with ":element-type '(list number *)" ?

.... but all I can do is "make-array" with ":element-type 'list" .

Randall Blanchard
blancha2@earthlink.net



Re: Shouldn't I be able to "make-array" with ":element-type '(list number *)" ?

LIST is not defined by the standard as a compound type specifier name
- see section 4.2.3.

You could define a type like, say, LIST-OF-INTEGER yourself using
SATISFIES, but that wouldn't help in your case.  I'm pretty sure every
Lisp will upgrade the element type of your array to T anyway.

Edi.


Re: Shouldn't I be able to "make-array" with ":element-type '(list number *)" ?

No, unfortunately you cannot.  The LIST type specifier is pretty  
useless.

Cheers
--
Marco





On Sep 1, 2008, at 23:44 , Randall Blanchard wrote:

> ... but all I can do is "make-array" with ":element-type 'list" .
>
> Randall Blanchard
> blancha2@earthlink.net
>
>
>

--
Marco Antoniotti



Updated at: 2020-12-10 08:42 UTC