From: Rand Sobriquet
Subject: "#*"
Date: 
Message-ID: <1e249696.0303260118.4c91a52@posting.google.com>
The concatenate function entry in the hyperspec has an example:

(concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
=>  (#\A #\B #\C D E F 1 2 3 1 0 1 1)

What does that "#*" part mean?

With Lispworks,

CL-USER 4 > (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
(#\A #\B #\C D E F 1 2 3 1 0 1 1)

With ACL

CG-USER(2):  (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
(#\A #\B #\C D E F 1 2 3 1 ...)

What do you think that "..." is supposed to mean?

Thanks,
Rand

From: Frode Vatvedt Fjeld
Subject: Re: "#*"
Date: 
Message-ID: <2h1y0u8nx8.fsf@vserver.cs.uit.no>
··········@eudoramail.com (Rand Sobriquet) writes:

> What does that "#*" part mean?

  (type-of #*1011)
  => (SIMPLE-ARRAY BIT (#x4))

..so it's a bit-array, and #* is the bit-array syntax.

> What do you think that "..." is supposed to mean?

That *print-length* is exceeded.

-- 
Frode Vatvedt Fjeld
From: Adam Warner
Subject: Re: "#*"
Date: 
Message-ID: <pan.2003.03.26.09.46.52.863703@consulting.net.nz>
Hi Rand Sobriquet,

> The concatenate function entry in the hyperspec has an example:
> 
> (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> =>  (#\A #\B #\C D E F 1 2 3 1 0 1 1)
> 
> What does that "#*" part mean?

Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
is a vector with the elements 1, 0, 1 and 1.

(equalp #*1011 #(1 0 1 1)) => true

> With Lispworks,
> 
> CL-USER 4 > (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> (#\A #\B #\C D E F 1 2 3 1 0 1 1)
> 
> With ACL
> 
> CG-USER(2):  (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011)
> (#\A #\B #\C D E F 1 2 3 1 ...)
> 
> What do you think that "..." is supposed to mean?

It looks like an annoying pretty printing option. See what
(format t "~S" (concatenate 'list "ABC" '(d e f) #(1 2 3) #*1011))
prints.

Regards,
Adam
From: Paul F. Dietz
Subject: Re: "#*"
Date: 
Message-ID: <p1ydnczeLr57FByjXTWcpA@dls.net>
Adam Warner wrote:

> Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
> is a vector with the elements 1, 0, 1 and 1.

A BIT vector, actually.

	Paul
From: Adam Warner
Subject: Re: "#*"
Date: 
Message-ID: <pan.2003.03.26.11.38.15.823999@consulting.net.nz>
Hi Paul F. Dietz,

> Adam Warner wrote:
> 
>> Look up #* in the non-alphabetic section of the HyperSpec's index.
>> #*1011 is a vector with the elements 1, 0, 1 and 1.
> 
> A BIT vector, actually.

True, and Rand could discover it, as I did, by reading the HyperSpec that
I suggested he look at.

It's a SIMPLE bit vector, actually.

Regards,
Adam
From: Rand Sobriquet
Subject: Re: "#*"
Date: 
Message-ID: <1e249696.0303260824.3b9bf7dc@posting.google.com>
> Look up #* in the non-alphabetic section of the HyperSpec's index. #*1011
> is a vector with the elements 1, 0, 1 and 1.
> 

Oh say thanks (and to Frode too).  I usually use the symbol index
(where I couldn't find the definition) and I had totally forgotten
about using the master index until I read your message.

Rand