[gambit-list] Black Hole and key parameters

Vincent St-Amour stamourv at iro.umontreal.ca
Thu Jul 16 00:25:23 EDT 2009


I've been playing around with Black Hole recently (which is quite
nice, by the way), and noticed the following issue.

Importing a file that contains :

(define (f x #!key (y x))
  (+ x y))
(display (f 3))


Causes this error :

> (import foo)
*** ERROR IN ##main -- (Argument 2) NUMBER expected
(+ 3 #!unbound)
>

y is unbound, while it should have the same value as x.

Since there seems to be a problem with both of Black Hole's git
repositories at the moment, I have not tested this with the latest
version. If this has already been solved, sorry.

Vincent



More information about the Gambit-list mailing list