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 #13 received at 17634-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Josep Portella Florit <jpf <at> primfilat.com>
Cc: 17634-done <at> debbugs.gnu.org
Subject: Re: bug#17634: "Unbound var" compilation error, lambda* & #:optional
Date: Mon, 29 Sep 2014 00:02:09 -0400
Josep Portella Florit <jpf <at> primfilat.com> writes:

> 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

Fixed in 7a71a45cfd6092402d540e9bc5d2432941a8a336 on the stable-2.0
branch.  I'm closing this bug.

    Thanks!
      Mark




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

Previous Next


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