diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2013-07-17 00:46:28 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2013-07-17 00:46:28 +0200 |
commit | 585547442ecc4b80542b8f84c7de129ba8d8f7cb (patch) | |
tree | 93be052e2b1f7e3b2cff08ebaf3af88147d9987b | |
parent | 58d3332b0d9344c9546e64765ce0ab301938e2dc (diff) |
PREPARE-LAMBDA: Fix context.
-rw-r--r-- | sb-eval2.lisp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sb-eval2.lisp b/sb-eval2.lisp index 2aa98f5..9c0b7dc 100644 --- a/sb-eval2.lisp +++ b/sb-eval2.lisp @@ -378,9 +378,10 @@ (default-values* (loop for default-value in default-values for binding in (append optional keys aux) - for var = (lambda-binding-main-var binding) + for vars = (lambda-binding-vars binding) collect (prepare-form default-value new-context) - do (context-add-env-lexical! context var))) + do (dolist (var vars) + (context-add-env-lexical! new-context var)))) (body* (prepare-progn body new-context)) (unbound (gensym))) (macrolet ((handle-arguments (args env) |