Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: function copy
- X-seq: zsh-workers 44550
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: PATCH: function copy
- Date: Tue, 16 Jul 2019 12:11:17 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3YYvVtQpC7qAqvJF77QdoGU9FffyqhehE+s3Mr5vyKk=; b=km4jdh1S/HZznv2aFd/mbhfjLvgDQHFaYdR18oNrq+hcubFv1pQTw7OFJaOG5VCx12 vins+7tLJOtQCkQLIRrOvH92FboORQoBMT/9TUz/BztuFqziX0V922q5X0NY7CmY6FV2 Ow62t6662fiPweO42M+5ypb0hDm90bZomjeUx9eFsLY6Xkr15PUlkiuu6NIhcczTmSWq l0SXX7KfB4nGQJbxcGN1xbvup97yX9rTiPZu3xh0qnOS6C1z3P2W0d7J87tTffCeQJpK KRIuZAz7e5tdRZTDyWsxTwUIwYAijMo4ViGC+AJlJErOr1blC1lpGhRCLcViyIVeugW8 kn7g==
- In-reply-to: <CAH+w=7YiA6zHgwGPYFFgLng_pjtOZtGc9BHCFAoOZMLmtGFJyA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <b80d50af30a0e94f5335d3deeb2bd7d4594ba112.camel@ntlworld.com> <CGME20190715214328epcas2p153c44d86e62004db0d2bc67fc6ad5a66@epcas2p1.samsung.com> <CAH+w=7b=AaS1s6_v8hBp6gqrJvY4ST28-XW85+qvK2sqoBojDg@mail.gmail.com> <1563267373.6702.5.camel@samsung.com> <CAH+w=7YiA6zHgwGPYFFgLng_pjtOZtGc9BHCFAoOZMLmtGFJyA@mail.gmail.com>
One other thought ...
On Tue, Jul 16, 2019 at 12:06 PM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Jul 16, 2019 at 1:56 AM Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> wrote:
> >
> > On Mon, 2019-07-15 at 14:42 -0700, Bart Schaefer wrote:
> >
> > > "around" you need a way to say "call the original function HERE"
> >
> > I think you're implying you'd rather not have an additional function
>
> There doesn't need to be any special syntax, just some special name
> linking
The other significant thing about "not have an additional function" is
that ideally _my_fn and _orig_fn would occur at the same locallevel,
that is, the call to the original function would not push a new
parameter context onto the stack but would instead behave as if you'd
eval'd the source text of the advised function.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author