From: Bart Schaefer <firstname.lastname@example.org>
To: Oliver Kiddle <email@example.com>
Cc: Zsh workers <firstname.lastname@example.org>
Subject: Re: [PATCH 1/3]: Add named references
Date: Wed, 8 Feb 2023 21:45:51 -0800 [thread overview]
Message-ID: <CAH+w=7bENi4uXLizbSZ6SX5L0OPieYn-yFcDwVcbQfUC55Dz5g@mail.gmail.com> (raw)
On Wed, Feb 8, 2023 at 6:01 PM Oliver Kiddle <email@example.com> 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.
can't change type via subscript reference
next prev parent reply other threads:[~2023-02-09 5:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 2:21 Bart Schaefer
2023-02-08 3:45 ` Oliver Kiddle
2023-02-08 4:59 ` Bart Schaefer
2023-02-08 23:16 ` Bart Schaefer
2023-02-09 0:47 ` Oliver Kiddle
2023-02-09 2:01 ` Oliver Kiddle
2023-02-09 5:45 ` Bart Schaefer [this message]
2023-02-09 4:49 ` Bart Schaefer
2023-02-09 20:49 ` Oliver Kiddle
2023-02-09 23:07 ` Bart Schaefer
2023-02-11 3:04 ` Bart Schaefer
2023-02-11 3:55 ` Bart Schaefer
2023-02-11 5:36 ` Speaking of dangerous referents Bart Schaefer
2023-02-12 8:00 ` Oliver Kiddle
2023-02-12 8:34 ` Bart Schaefer
2023-02-11 7:02 ` [PATCH 1/3]: Add named references Oliver Kiddle
2023-02-11 7:45 ` Bart Schaefer
2023-02-11 23:43 ` Bart Schaefer
2023-02-11 23:45 ` Bart Schaefer
2023-02-12 7:38 ` Oliver Kiddle
2023-02-12 9:02 ` Oliver Kiddle
2023-02-12 18:59 ` Bart Schaefer
2023-02-12 19:45 ` PM_* flags in zsh.h (was Re: [PATCH 1/3]: Add named references) Bart Schaefer
2023-02-12 21:01 ` Oliver Kiddle
2023-02-12 22:54 ` [PATCH 1/3]: Add named references Oliver Kiddle
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).