Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: function copy



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