From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Arbitrary function: find the number(s) of expected arguments Date: Sat, 19 Mar 2016 16:34:55 +0000 Message-ID: References: <56E8906C.5050405@lanl.gov> <83egb68vfy.fsf@gnu.org> <87zituefp9.fsf@web.de> <83a8lu8srs.fsf@gnu.org> <87twk2ebp2.fsf@web.de> <838u1e8od1.fsf@gnu.org> <8360wi8mbo.fsf@gnu.org> <834mc28m3j.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11401f20206573052e6972e0 X-Trace: ger.gmane.org 1458405325 28704 80.91.229.3 (19 Mar 2016 16:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 16:35:25 +0000 (UTC) Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 17:35:24 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahJqV-0001pm-M9 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 17:35:23 +0100 Original-Received: from localhost ([::1]:49634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahJqV-00012c-3c for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 12:35:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahJqE-00011O-MF for emacs-devel@gnu.org; Sat, 19 Mar 2016 12:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahJqD-00034o-Ot for emacs-devel@gnu.org; Sat, 19 Mar 2016 12:35:06 -0400 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahJqD-00033O-Gc; Sat, 19 Mar 2016 12:35:05 -0400 Original-Received: by mail-lf0-x22f.google.com with SMTP id e196so8502278lfg.1; Sat, 19 Mar 2016 09:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T0R4iCy9O2K8E5wR54A9Hcew9YcTUgmKjRTR0W1IuM8=; b=qIh7mehAPHlsKX+4JutV0rBoxWHU4d+2oYDhCZlriOAXzDkPB+Fkfu9qFnlWdccdNs S8oQf7Ewruous3aGPIpOcQhJ847op3WoxTQZWUj/jxzRxp4ibLLlf1shdWlki/cz1DrC lJ6efxnGdLBJMxRftMzvfO3FnFrQac4gbp/R1m6gKFtU21lsD/++k8CFiPaRdLE5is1L wyreNxR//bNOO0SNmhHDiowyqXMRy3XSy+Jbht7M9u8SmYm4aIVFUczyLlkRSoAETWor 9QqmC1U582kDB4vQvHY2qyFbe/AJWpA43ybmSVsff6lAqpZhqqkOEyXKLWt8LzwCXvJ6 xwDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T0R4iCy9O2K8E5wR54A9Hcew9YcTUgmKjRTR0W1IuM8=; b=FeHu9MNx73qmzRg4kOoozfA0HHBCmvRFbfAQYYc5vv3fTVkwhoqlSOY2MLUV3djGY/ flCoKKkViqwfKY/CD2Er2kO4nWLsYEHIUv20T4f989DH2iYedcMXoxR7gg0h+W1mI1hG FwSP28Ft+p6136UzyZok+mEKZfnIOTYFB4PDQYae6169uFiTpRBY2FxA+adgqd1RQB73 YyrgoZfgD2wixkpQFqPa2z5kFrZcKBms84e0/csfgjpV/RpjPqlmvPbOyYCL1sNHXuGx DqwqJtB233Glsea8n55hAy7TXGD5UT3j2S9IrxO5A88exIOGOJHlVv2hx8GN1sN/DqVE 6eIg== X-Gm-Message-State: AD7BkJJKihaQzR6u19hvPl+sJ9u5F/wjR3rCET8RmqyrqendiJw7MJ86xdIpZDvn+IGC6tJ35dKqIf/B5YAv3A== X-Received: by 10.25.151.75 with SMTP id z72mr6249998lfd.122.1458405304721; Sat, 19 Mar 2016 09:35:04 -0700 (PDT) In-Reply-To: <834mc28m3j.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201879 Archived-At: --001a11401f20206573052e6972e0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii schrieb am Sa., 19. M=C3=A4rz 2016 um 17:33 Uh= r: > > From: Philipp Stephani > > Date: Sat, 19 Mar 2016 16:30:30 +0000 > > Cc: michael_heerdegen@web.de, emacs-devel@gnu.org > > > > No, that's not g's arity: > > > > (g 10 202 30) =3D> 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. --001a11401f20206573052e6972e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Sa., 19. M=C3=A4rz 2016 um 17:33=C2=A0Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 19 Mar 2016 16:30:30 +0000
> Cc: mich= ael_heerdegen@web.de, emacs-devel@gnu.org
>
>=C2=A0 No, that's not g's arity:
>
>=C2=A0 (g 10 202 30) =3D> error -> "Wrong number of argument= s"
>
> 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 discus= sing 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 limitatio= n we have to live with.=C2=A0
--001a11401f20206573052e6972e0--