(lambda*): Make sure that BODY is always put into a
authorMarius Vollmer <mvo@zagadka.de>
Sat, 9 Jun 2001 18:14:22 +0000 (18:14 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Sat, 9 Jun 2001 18:14:22 +0000 (18:14 +0000)
real body context so that it can contain internal definitions.
Thanks to Matthias Köppe!

ice-9/optargs.scm

index 2ee0411..fd4db65 100644 (file)
                                    `((if (not (null? ,rest-gensym))
                                          (error "Too many arguments.")))
                                    '())
-                             ,@BODY)))
+                             (let ()
+                               ,@BODY))))
           `(lambda (,@non-optional-args . ,(if rest-arg rest-arg '()))
              ,@BODY))))))