zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: local functions
Date: Mon, 19 Dec 2022 11:01:17 -0800	[thread overview]
Message-ID: <CAH+w=7YvPh87MXmFXxvUTVAq5j3_jvYjWpiugMnR3BaW6ogTbA@mail.gmail.com> (raw)
In-Reply-To: <62a2b6f4-9b30-1f6e-0aba-47d76dde8be6@eastlink.ca>

On Mon, Dec 19, 2022 at 10:20 AM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> I see nothing to indicate it is possible, but can we make a helper
> function 'local'?

No.

> Putting
> 'local' in front of a function definition seems not to be an error, but
> it seems to make no difference.

You have most likely just redefined "local" as a function.  Try again
with "setopt NO_MULTI_FUNC_DEF".


  reply	other threads:[~2022-12-19 19:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 18:19 Ray Andrews
2022-12-19 19:01 ` Bart Schaefer [this message]
2022-12-19 21:52   ` Ray Andrews
2022-12-20  1:00     ` Bart Schaefer
2022-12-20  2:51       ` Ray Andrews

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7YvPh87MXmFXxvUTVAq5j3_jvYjWpiugMnR3BaW6ogTbA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.vuxu.org/mirror/zsh/

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).