From unknown Sun Jun 22 08:09:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13966: inlining issue? Resent-From: Daniel Llorens Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 15 Mar 2013 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13966 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 13966@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136335282916941 (code B ref -1); Fri, 15 Mar 2013 13:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2013 13:07:09 +0000 Received: from localhost ([127.0.0.1]:55658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGULk-0004PA-3l for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:07:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48025) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGULg-0004Of-V0 for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGUJt-00010a-NY for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:05:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-105.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUJt-0000mK-Kd for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:05:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUCR-0000PC-P5 for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGUCQ-0006MB-HN for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:31 -0400 Received: from zhhdzmsp-smta18.bluewin.ch ([195.186.227.133]:64931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUCQ-0006Lm-Aj for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:30 -0400 Received: from [195.186.99.130] ([195.186.99.130:42138] helo=zhbdzmsp-smta11.bluewin.ch) by zhhdzmsp-smta18.bluewin.ch (envelope-from ) (ecelerity 2.2.3.47 r(39824M)) with ESMTP id C5/B4-12532-7BA13415; Fri, 15 Mar 2013 12:57:28 +0000 Received: from [172.16.96.17] (62.2.203.131) by zhbdzmsp-smta11.bluewin.ch (8.5.142) (authenticated as dll@bluewin.ch) id 510085AB047A1C80 for bug-guile@gnu.org; Fri, 15 Mar 2013 12:57:27 +0000 From: Daniel Llorens Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Mar 2013 13:57:26 +0100 Message-Id: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Compare=20 (define f (lambda (a) a)) (call-with-values (lambda () (values 3 3)) f) vs (call-with-values (lambda () (values 3 3)) (lambda (a) a)) The first one fails with :1:0: In procedure f: :1:0: Wrong number of arguments to # The second one gives 3.=20 This is Guile 2.0.7.112-f5ea5. The behavior of the first case makes (compose f g) fail when f takes = less args tan g produces. Regards Daniel From unknown Sun Jun 22 08:09:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13966: inlining issue? Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 22 Mar 2013 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13966 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Daniel Llorens Cc: Andy Wingo , 13966@debbugs.gnu.org Received: via spool by 13966-submit@debbugs.gnu.org id=B13966.13639606573818 (code B ref 13966); Fri, 22 Mar 2013 13:58:02 +0000 Received: (at 13966) by debbugs.gnu.org; 22 Mar 2013 13:57:37 +0000 Received: from localhost ([127.0.0.1]:40973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJ2TR-0000zW-7v for submit@debbugs.gnu.org; Fri, 22 Mar 2013 09:57:37 -0400 Received: from xanadu.aquilenet.fr ([88.191.123.111]:58394) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJ2TN-0000zM-Md for 13966@debbugs.gnu.org; Fri, 22 Mar 2013 09:57:35 -0400 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 9CD66C040; Fri, 22 Mar 2013 14:55:35 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cfIOzDCyW+kd; Fri, 22 Mar 2013 14:55:35 +0100 (CET) Received: from pluto (nat-eduroam-36-gw-01-bso.bordeaux.inria.fr [194.199.1.36]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 489C815C8; Fri, 22 Mar 2013 14:55:35 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> Date: Fri, 22 Mar 2013 14:55:35 +0100 In-Reply-To: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> (Daniel Llorens's message of "Fri, 15 Mar 2013 13:57:26 +0100") Message-ID: <87sj3nfsiw.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Daniel, Daniel Llorens skribis: > Compare > > (define f (lambda (a) a)) > (call-with-values (lambda () (values 3 3)) f) > > vs > > (call-with-values (lambda () (values 3 3)) (lambda (a) a)) > > The first one fails with > > :1:0: In procedure f: > :1:0: Wrong number of arguments to # > > The second one gives 3. > > This is Guile 2.0.7.112-f5ea5. > > The behavior of the first case makes (compose f g) fail when f takes less args tan g produces. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4855] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Daniel, Daniel Llorens skribis: > Compare=20 > > (define f (lambda (a) a)) > (call-with-values (lambda () (values 3 3)) f) > > vs > > (call-with-values (lambda () (values 3 3)) (lambda (a) a)) > > The first one fails with > > :1:0: In procedure f: > :1:0: Wrong number of arguments to # > > The second one gives 3.=20 > > This is Guile 2.0.7.112-f5ea5. > > The behavior of the first case makes (compose f g) fail when f takes less= args tan g produces. That is unfortunate but I think the former is correct. R5RS doesn=E2=80=99t say anything about the expected behavior when the prod= ucer returns a number of values incompatible with what the consumer accepts. R6RS says (Section 5.8): If the number of return values passed to a continuation created by a call to call-with-values is not accepted by its consumer that was passed in that call, then an exception is raised. and Section 11.5: Consumer must be a procedure and should accept as many values as producer returns. R7RS draft #6 uses equivalent wording (I think): Calls its producer argument with no values and a continuation that, when passed some values, calls the consumer procedure with those values as arguments. This patch fixes peval to not inline (call-with-values (lambda () (values vals ...)) (lambda (args ...) ...)) when the length of =E2=80=98vals=E2=80=99 differs from that of =E2=80=98arg= s=E2=80=99. However, it=E2=80=99s not very elegant, IMO. Andy? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/module/language/tree-il/peval.scm b/module/language/tree-il/peval.scm index bf96179..25dded4 100644 --- a/module/language/tree-il/peval.scm +++ b/module/language/tree-il/peval.scm @@ -1155,6 +1155,25 @@ top-level bindings from ENV and return the resulting expression." (simplify-conditional (make-conditional src c (for-tail subsequent) (for-tail alternate)))))) + + (($ src + ($ _ '@call-with-values) + (($ _ _ + ($ _ + () #f #f #f () () + ($ _ ($ _ 'values) + (produced ...)) + #f)) + ($ _ _ + (and consumer + ($ _ + (? (negate (compose (cute = <> (length produced)) + length))) + #f #f #f () gensyms body #f))))) + ;; Producer is (values args ...) but consumer expects a different + ;; number of values, which is an error. + exp) + (($ src ($ _ '@call-with-values) (producer --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 25 18:03:52 2013 Received: (at control) by debbugs.gnu.org; 25 Apr 2013 22:03:52 +0000 Received: from localhost ([127.0.0.1]:43683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVUGd-0000Zy-V0 for submit@debbugs.gnu.org; Thu, 25 Apr 2013 18:03:52 -0400 Received: from world.peace.net ([96.39.62.75]:47900) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVUGb-0000Zm-Jc for control@debbugs.gnu.org; Thu, 25 Apr 2013 18:03:49 -0400 Received: from turntable.mit.edu ([18.160.0.29] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UVUBW-0000Ul-7y; Thu, 25 Apr 2013 17:58:34 -0400 From: Mark H Weaver To: control@debbugs.gnu.org Date: Thu, 25 Apr 2013 17:58:14 -0400 Message-ID: <874neu2ryh.fsf@tines.lan> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.8 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 13966 Inconsistent truncation of multiple values, inlining issue? thanks [...] Content analysis details: (2.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5002] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 2.8 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 13966 Inconsistent truncation of multiple values, inlining issue? thanks [...] Content analysis details: (2.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4981] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject retitle 13966 Inconsistent truncation of multiple values, inlining issue? thanks From unknown Sun Jun 22 08:09:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Llorens Subject: bug#13966: closed (Re: bug#13966: inlining issue?) Message-ID: References: <87ziqf7hgi.fsf@pobox.com> <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> X-Gnu-PR-Message: they-closed 13966 X-Gnu-PR-Package: guile Reply-To: 13966@debbugs.gnu.org Date: Mon, 20 Jun 2016 20:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1466453282-7712-1" This is a multi-part message in MIME format... ------------=_1466453282-7712-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13966: Inconsistent truncation of multiple values, inlining issue? which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13966@debbugs.gnu.org. --=20 13966: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13966 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1466453282-7712-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13966-done) by debbugs.gnu.org; 20 Jun 2016 20:07:06 +0000 Received: from localhost ([127.0.0.1]:48057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF5TO-0001z9-20 for submit@debbugs.gnu.org; Mon, 20 Jun 2016 16:07:06 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:55672 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF5TM-0001z1-6B for 13966-done@debbugs.gnu.org; Mon, 20 Jun 2016 16:07:04 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 997E624E3E; Mon, 20 Jun 2016 16:07:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=0vQEWNOoibdTcTAgHzARTm+HjQI=; b=StgEfl I7N/2zB9SLD3KtbtC7PLYQAAkBv9hzwOyApvVUNAHXtPWeT3Njg6Pd3XIGCVWY9k QyhRvpeQlQBni3eXZUf8obO948kAxkfJKOVZkV7n13LyrcoowJXhpGPo8c/AtHak ioxqlRZOF6+OnvNv5d9gdCWhJWxAZZI2+dvGc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=CvREFUtVSEW88LkXhufbMTjtUW3agumT bZqmdscp67GClkrMMGd4gpRL8HC40CkWAUSP2970MJC1DGpFMIYLlKxI855oJCen TGQhwqsjkzXawGTkM37rWZsCRQQGB11N9gR07t5aFNhHkPUN1bTI3pKDVs4mBzlq OGXhEXCBQDw= Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 7C18124E3C; Mon, 20 Jun 2016 16:07:02 -0400 (EDT) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id BE73724E3A; Mon, 20 Jun 2016 16:07:01 -0400 (EDT) From: Andy Wingo To: Daniel Llorens Subject: Re: bug#13966: inlining issue? References: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> Date: Mon, 20 Jun 2016 22:06:53 +0200 In-Reply-To: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> (Daniel Llorens's message of "Fri, 15 Mar 2013 13:57:26 +0100") Message-ID: <87ziqf7hgi.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 8D3F204A-3722-11E6-A665-C1836462E9F6-02397024!pb-sasl1.pobox.com X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 13966-done Cc: 13966-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Fri 15 Mar 2013 13:57, Daniel Llorens writes: > Compare > > (define f (lambda (a) a)) > (call-with-values (lambda () (values 3 3)) f) > > vs > > (call-with-values (lambda () (values 3 3)) (lambda (a) a)) > > The first one fails with > > :1:0: In procedure f: > :1:0: Wrong number of arguments to # > > The second one gives 3. > > This is Guile 2.0.7.112-f5ea5. > > The behavior of the first case makes (compose f g) fail when f takes less args tan g produces. Fixed in fff013215fb1a5d211df5037dcf52c92063050a8 on master. Thanks for the report! Andy ------------=_1466453282-7712-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Mar 2013 13:07:09 +0000 Received: from localhost ([127.0.0.1]:55658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGULk-0004PA-3l for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:07:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48025) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGULg-0004Of-V0 for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGUJt-00010a-NY for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:05:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-105.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUJt-0000mK-Kd for submit@debbugs.gnu.org; Fri, 15 Mar 2013 09:05:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUCR-0000PC-P5 for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGUCQ-0006MB-HN for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:31 -0400 Received: from zhhdzmsp-smta18.bluewin.ch ([195.186.227.133]:64931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGUCQ-0006Lm-Aj for bug-guile@gnu.org; Fri, 15 Mar 2013 08:57:30 -0400 Received: from [195.186.99.130] ([195.186.99.130:42138] helo=zhbdzmsp-smta11.bluewin.ch) by zhhdzmsp-smta18.bluewin.ch (envelope-from ) (ecelerity 2.2.3.47 r(39824M)) with ESMTP id C5/B4-12532-7BA13415; Fri, 15 Mar 2013 12:57:28 +0000 Received: from [172.16.96.17] (62.2.203.131) by zhbdzmsp-smta11.bluewin.ch (8.5.142) (authenticated as dll@bluewin.ch) id 510085AB047A1C80 for bug-guile@gnu.org; Fri, 15 Mar 2013 12:57:27 +0000 From: Daniel Llorens Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: inlining issue? Date: Fri, 15 Mar 2013 13:57:26 +0100 Message-Id: <41C98E11-DE0A-432E-9947-7F75B572FB12@bluewin.ch> To: bug-guile@gnu.org Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Compare=20 (define f (lambda (a) a)) (call-with-values (lambda () (values 3 3)) f) vs (call-with-values (lambda () (values 3 3)) (lambda (a) a)) The first one fails with :1:0: In procedure f: :1:0: Wrong number of arguments to # The second one gives 3.=20 This is Guile 2.0.7.112-f5ea5. The behavior of the first case makes (compose f g) fail when f takes = less args tan g produces. Regards Daniel ------------=_1466453282-7712-1--