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