bug-guile
[Top][All Lists]
Advanced

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

bug#17634: "Unbound var" compilation error, lambda* & #:optional


From: Josep Portella Florit
Subject: bug#17634: "Unbound var" compilation error, lambda* & #:optional
Date: Thu, 29 May 2014 22:36:08 +0200

Hi!

Please, see the attached REPL session.

Regards


scheme@(guile-user)> ((lambda* (a #:optional (b (+ a 1))) b) 1)
While compiling expression:
ERROR: unbound var a-492
scheme@(guile-user)> (define f (lambda* (a #:optional (b (+ a 1))) b))
scheme@(guile-user)> (f 1)
$2 = 2
scheme@(guile-user)> ((lambda* (a #:key (b (+ a 1))) b) 1)
$3 = 2

(Tested on Guile 2.0.11)





reply via email to

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