unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13966: inlining issue?
@ 2013-03-15 12:57 Daniel Llorens
  2013-03-22 13:55 ` Ludovic Courtès
  2016-06-20 20:06 ` Andy Wingo
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Llorens @ 2013-03-15 12:57 UTC (permalink / raw)
  To: 13966


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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-20 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-15 12:57 bug#13966: inlining issue? Daniel Llorens
2013-03-22 13:55 ` Ludovic Courtès
2016-06-20 20:06 ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).