Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 1/3]: Add named references
- X-seq: zsh-workers 51388
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH 1/3]: Add named references
- Date: Wed, 8 Feb 2023 21:45:51 -0800
- Archived-at: <https://zsh.org/workers/51388>
- In-reply-to: <25878-1675908060.317862@x_tj.49MY.g4Qe>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bd5tHQ8_ZFuyheUrTStm8pR826jH1LB-vMdEnv14nH0w@mail.gmail.com> <67689-1675827940.088548@BxvG.D9_b.7RzI> <CAH+w=7ZFq_MyNtPVetDt84Zp8dnCQXis3p=2sKP018GZ-VTd0g@mail.gmail.com> <12608-1675903622.800470@Xj82.e3y1.svhG> <25878-1675908060.317862@x_tj.49MY.g4Qe>
On Wed, Feb 8, 2023 at 6:01 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> This isn't a self-reference because the local levels would be different.
Working on that. Halfway there.
> And "self reference" in the error message should be hyphenated.
I copied that message verbatim from ksh93. Can still change it, but
does it really matter?
> Maybe the code should have a safer mode for subscript evaluation.
See previous message.
> We already talked about this error message. But now it is a substring.
> export ref
> export: ref: can't change type of a named reference
The point at which it's necessary to catch that error would have to
lop off the subscript and re-evaluate the base variable name in order
to determine the thing being subscripted. That seems like an
unnecessary amount of work.
How about
can't change type via subscript reference
??
Messages sorted by:
Reverse Date,
Date,
Thread,
Author