GNU bug report logs - #17634
"Unbound var" compilation error, lambda* & #:optional

Previous Next

Package: guile;

Reported by: Josep Portella Florit <jpf <at> primfilat.com>

Date: Thu, 29 May 2014 20:37:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Josep Portella Florit <jpf <at> primfilat.com>
To: bug-guile <at> gnu.org
Subject: "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)




This bug report was last modified 10 years and 301 days ago.

Previous Next


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