HCoop
/
clinton
/
parenscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3366794
)
Improved handling of quoted symbols in CASE.
author
Travis Cross
<tc@traviscross.com>
Fri, 22 Aug 2008 05:57:56 +0000
(
05:57
+0000)
committer
Travis Cross
<tc@traviscross.com>
Fri, 22 Aug 2008 05:59:22 +0000
(
05:59
+0000)
(case val ('a (b))) ; now produces an error, just like:
(case val (('a 'b) (c))) ; did before.
Thanks to: Daniel Gackle <danielgackle@gmail.com>
src/special-forms.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/special-forms.lisp
b/src/special-forms.lisp
index
155ce51
..
49f0650
100644
(file)
--- a/
src/special-forms.lisp
+++ b/
src/special-forms.lisp
@@
-186,7
+186,7
@@
(defpsmacro case (value &rest clauses)
(labels ((make-clause (val body more)
- (cond ((
listp val
)
+ (cond ((
and (listp val) (not (eq (car val) 'quote))
)
(append (mapcar #'list (butlast val))
(make-clause (first (last val)) body more)))
((member val '(t otherwise))