Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Named reference typos & misc.
- X-seq: zsh-workers 51439
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Named reference typos & misc.
- Date: Wed, 15 Feb 2023 10:12:29 +0000 (GMT)
- Archived-at: <https://zsh.org/workers/51439>
- Importance: Normal
- In-reply-to: <CAH+w=7aRann+SXDjNwQP3dh=_-e9etrhms5cL-MQp-03KWtp1Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YRxyV6sj4eobpgo3aEgw3MOZj6jJ9bhi+acJn=ywbVAA@mail.gmail.com> <1249162537.4244630.1676386019653@mail.virginmedia.com> <CAH+w=7Y5=OvRTCCHahaMc9+n8XFrOSiSwrkXd86AdToU4N7QNA@mail.gmail.com> <1911575874.92635.1676392609186@mail.virginmedia.com> <CAH+w=7aRann+SXDjNwQP3dh=_-e9etrhms5cL-MQp-03KWtp1Q@mail.gmail.com>
On 14/02/2023 20:00 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Unrelated:
> > I kept the loop in the function to avoid a (correct) additional warning
> > message setting the global variable ref in the loop. I don't know if
> > setting ref in a for loop should actually elide that message, which
> > is a completely separate issue.
>
> You mean an assignment within the loop, while "ref" already points out
> of it? I would think that'd be expected to trigger warn_create_global
> instead,
Yes, and it usually does with normal references, so I guess there's a
different case here with namerefs.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author