bug-guile
[Top][All Lists]
Advanced

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

bug#13966: inlining issue?


From: Daniel Llorens
Subject: bug#13966: 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






reply via email to

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