projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96fc484
)
Fix etypecase
author
David Vázquez
<davazp@gmail.com>
Sun, 5 May 2013 15:39:12 +0000
(16:39 +0100)
committer
David Vázquez
<davazp@gmail.com>
Sun, 5 May 2013 15:39:12 +0000
(16:39 +0100)
src/boot.lisp
patch
|
blob
|
history
diff --git
a/src/boot.lisp
b/src/boot.lisp
index
ceaf956
..
8778da2
100644
(file)
--- a/
src/boot.lisp
+++ b/
src/boot.lisp
@@
-585,9
+585,10
@@
(defmacro etypecase (x &rest clausules)
(let ((g!x (gensym)))
- `(typecase ,g!x
- ,@clausules
- (t (error "~X fell through etypeacase expression." ,g!x)))))
+ `(let ((,g!x ,x))
+ (typecase ,g!x
+ ,@clausules
+ (t (error "~X fell through etypeacase expression." ,g!x))))))
(defun notany (fn seq)
(not (some fn seq)))