[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple vector
- To: info-mcl%cambridge.apple.com@kddlab.kddlabs.co.jp
- Subject: Re: simple vector
- From: funato@shpcsl.sharp.co.jp (Nobuhiko Funato)
- Date: Wed, 2 Sep 92 18:37:49 JST
ueda@shpcsl.sharp.co.jp (UEDA masaya) wrote:
>
> Dear MCLers:
It is not a problem of MCL.
> But when I make a vector of which :element-type is fixnum, referrence
> by svref causes an error as follows.
SVREF requires that its argument array is simple-vector, not only
simple but general vector. (See CLtL)
> Why make-array returns simple vector when :element-type is 'integer
> and dose not return simple vector when :element-type is 'fixnum? I
> feel it queer because fixnum is a subtype of integer, but Sun4 Allegro
> Common Lisp causes same error...
(MAKE-ARRAY n :element-type 'fixnum) certainly returns a simple vector,
but its type is not simple-vector. Since it is not general.
(MAKE-ARRAY n :element-type 'integer) may typically return a general
vector, because elements of the array must be able to contain integer,
that implies fixnum or BIGNUM.
> Masaya UEDA
> Information System R&D Center, SHARP Co.
> 2613-1 Ichinomoto, Tenri, Nara 632, JAPAN
>
your neighbor, Nobuhiko FUNATO
Information System R&D Center, SHARP Co.
2613-1 Ichinomoto, Tenri, Nara 632, JAPAN
funato%shpcsl.sharp.co.jp@uunet.uu.net