Avoid creating extended-lambdas just because of aux vars.
authorJoe Marshall <eval.apply@gmail.com>
Sun, 12 Feb 2012 01:41:01 +0000 (17:41 -0800)
committerJoe Marshall <eval.apply@gmail.com>
Sun, 12 Feb 2012 01:41:01 +0000 (17:41 -0800)
src/runtime/lambda.scm

index e583d001deba683a35579b89f6ce63c39e48ee36..551957a73e235e0b56318c8295d490902319f726 100644 (file)
@@ -487,8 +487,7 @@ USA.
     (cond ((and (< (length required) 256)
                (< (length optional) 256)
                (or (not (null? optional))
-                   rest
-                   (not (null? auxiliary))))
+                   rest))
           (make-xlambda name required optional rest auxiliary body*))
          ((not (null? optional))
           (error "Optionals not implemented" 'MAKE-LAMBDA))