Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH 1/3] Extended ksh compatibility: namespace parameter syntax



On Sun, Mar 5, 2023 at 12:20 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Mar 5, 2023 at 1:57 AM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >
> > I wonder, how far is this from supporting a nested arrays? Like arr[2][3] or assoc[a][c]?
>
> It's exactly as far as it has always been.

The other unanswered question is, to what does arr[2] expand when
arr[2][3] is also an array?  That is, when you have to subscript 3+
times to reach a scalar?  There's no convenient text representation of
array-of-array; do we just throw an error if there are too few levels
of dereference?




Messages sorted by: Reverse Date, Date, Thread, Author