Added &OPTIONAL to DESTRUCTURING-BIND. Currently it's just ignored (next step woudl... origin/HEAD origin/master
authorDaniel Gackle <danielgackle@gmail.com>
Thu, 17 Sep 2009 23:47:52 +0000 (17:47 -0600)
committerDaniel Gackle <danielgackle@gmail.com>
Fri, 18 Sep 2009 19:46:17 +0000 (13:46 -0600)
src/lib/ps-macro-lib.lisp

index 78af135..56b88dc 100644 (file)
                     (atom (second bindings)))
                (bind-rest (second bindings))
                (error "~a is invalid in destructuring list." bindings)))
+          ((eq (car bindings) '&optional)
+           (destructuring-wrap arr n (cdr bindings) body :setf? setf?))
           (t (let ((var (car bindings))
                    (inner-body (destructuring-wrap arr (1+ n) (cdr bindings) body :setf? setf?)))
                (cond ((null var) inner-body)