[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arbitrary function: find the number(s) of expected arguments
From: |
Eli Zaretskii |
Subject: |
Re: Arbitrary function: find the number(s) of expected arguments |
Date: |
Sat, 19 Mar 2016 20:14:12 +0200 |
> From: Michael Heerdegen <address@hidden>
> Cc: address@hidden
> Date: Sat, 19 Mar 2016 18:59:14 +0100
>
> Eli Zaretskii <address@hidden> writes:
>
> > > > I disagree with this conclusion. The fact is that the Emacs Lisp
> > > > interpreter does know how to produce a clear answer.
> > >
> > > Imagine `f' accepts, say, three arguments. Now, let's
> > >
> > > (advice-add 'f :around
> > > (defun my-f-around-advice (orig-f &rest args)
> > > (let ((some-value (g args)))
> > > (if (function-p (car-safe some-value))
> > > (apply (car some-value) (cdr some-value))
> > > (if (h args)
> > > (k args)
> > > (apply orig-f some-value))))))
> > >
> > > What should (function-arity #'f) return?
> >
> > How is that relevant to the cited text?
>
> I had concluded that it is not possible to implement `function-arity' so
> that it will always give a meaningful return value. You disagreed
> (that's the cited text), so I tried to give an example proving my
> conclusion. What did I miss?
The second sentence in the cited text.
- Re: Arbitrary function: find the number(s) of expected arguments, (continued)
- Re: Arbitrary function: find the number(s) of expected arguments, Paul Pogonyshev, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments,
Eli Zaretskii <=
- Re: Arbitrary function: find the number(s) of expected arguments, Philipp Stephani, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Michael Heerdegen, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Philipp Stephani, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Philipp Stephani, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Philipp Stephani, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Philipp Stephani, 2016/03/19
- Re: Arbitrary function: find the number(s) of expected arguments, Eli Zaretskii, 2016/03/19