SRFI 231 and empty arrays Bradley J Lucier (31 Mar 2026 16:08 UTC)
Re: SRFI 231 and empty arrays Bradley J Lucier (01 Apr 2026 17:50 UTC)
Re: SRFI 231 and empty arrays John Cowan (01 Apr 2026 21:30 UTC)
Re: SRFI 231 and empty arrays John Cowan (01 Apr 2026 21:47 UTC)
Re: SRFI 231 and empty arrays Bradley J Lucier (01 Apr 2026 22:21 UTC)
Re: SRFI 231 and empty arrays Per Bothner (01 Apr 2026 22:44 UTC)
Re: SRFI 231 and empty arrays John Cowan (01 Apr 2026 23:30 UTC)
Re: SRFI 231 and empty arrays Bradley Lucier (01 Apr 2026 23:43 UTC)
Re: SRFI 231 and empty arrays John Cowan (02 Apr 2026 00:36 UTC)
Re: SRFI 231 and empty arrays John Cowan (01 Apr 2026 23:04 UTC)
Re: SRFI 231 and empty arrays Arthur A. Gleckler (01 Apr 2026 17:57 UTC)

Re: SRFI 231 and empty arrays John Cowan 01 Apr 2026 21:30 UTC

CL (where all lower bounds are 0) doesn't round-trip empty arrays
either.  Arrays with dimensions (0 0) and (0 2) both print as #2A(),
which is read back with dimensions (0 0).  However, an array with
dimensions (2 0) prints as #2A(() ())

The element type is also discarded on output: if you read them in, you
always get an array with the generic storage class. SBCL has an
extension for this.

On Wed, Apr 1, 2026 at 1:50 PM Bradley J Lucier <xxxxxx@purdue.edu> wrote:
>
> On Mar 31, 2026, at 12:08 PM, Bradley J Lucier <xxxxxx@purdue.edu> wrote:
>
> In your notation, how would you specify an empty array literal with lower bounds ‘#(0 0) and upper bounds ‘#(0 2)?
>
>
> After more study, I’ll say that I don’t think one can specify an empty array literal with lower bounds ‘#(0 0) and upper bounds ‘#(0 2) using SRFI 268.
>
> Brad