emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary function: find the number(s) of expected arguments


From: Philipp Stephani
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Sat, 19 Mar 2016 17:16:55 +0000



Eli Zaretskii <address@hidden> schrieb am Sa., 19. März 2016 um 17:47 Uhr:
> From: Philipp Stephani <address@hidden>
> Date: Sat, 19 Mar 2016 16:34:55 +0000
> Cc: address@hidden, address@hidden
>
>  > (g 10 202 30) => error -> "Wrong number of arguments"
>  >
>  > This cannot be detected without evaluating the function.
>
>  Are we discussing the usefulness of the function, or are we discussing
>  how best to implement it?
>
>
> We are discussing for which cases it can be implemented. It can be implemented and would be useful for a
> wide range of functions, such as those defined with defun. It cannot be implemented for functions like g; that's
> just a limitation we have to live with.

That's one possibility.  Another is that the implementation will be
able to find out the truth, just like the Lisp interpreter does.

Presumably that would imply solving the halting problem. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]