GNU bug report logs - #13966
Inconsistent truncation of multiple values, inlining issue?

Previous Next

Package: guile;

Reported by: Daniel Llorens <daniel.llorens <at> bluewin.ch>

Date: Fri, 15 Mar 2013 13:08:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#13966: closed (Inconsistent truncation of multiple values,
 inlining issue?)
Date: Mon, 20 Jun 2016 20:08:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 20 Jun 2016 22:06:53 +0200
with message-id <87ziqf7hgi.fsf <at> pobox.com>
and subject line Re: bug#13966: inlining issue?
has caused the debbugs.gnu.org bug report #13966,
regarding Inconsistent truncation of multiple values, inlining issue?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
13966: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13966
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Daniel Llorens <daniel.llorens <at> bluewin.ch>
To: bug-guile <at> gnu.org
Subject: inlining issue?
Date: Fri, 15 Mar 2013 13:57:26 +0100
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

<unnamed port>:1:0: In procedure f:
<unnamed port>:1:0: Wrong number of arguments to #<procedure f (a)>

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.

Regards

	Daniel



[Message part 3 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Daniel Llorens <daniel.llorens <at> bluewin.ch>
Cc: 13966-done <at> debbugs.gnu.org
Subject: Re: bug#13966: inlining issue?
Date: Mon, 20 Jun 2016 22:06:53 +0200
On Fri 15 Mar 2013 13:57, Daniel Llorens <daniel.llorens <at> bluewin.ch> 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
>
> <unnamed port>:1:0: In procedure f:
> <unnamed port>:1:0: Wrong number of arguments to #<procedure f (a)>
>
> 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


This bug report was last modified 8 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.