projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68cd2db
)
ETYPECASE
author
David Vázquez
<davazp@gmail.com>
Sun, 5 May 2013 15:23:17 +0000
(16:23 +0100)
committer
David Vázquez
<davazp@gmail.com>
Sun, 5 May 2013 15:23:17 +0000
(16:23 +0100)
src/boot.lisp
patch
|
blob
|
history
diff --git
a/src/boot.lisp
b/src/boot.lisp
index
ab043a9
..
ceaf956
100644
(file)
--- a/
src/boot.lisp
+++ b/
src/boot.lisp
@@
-583,10
+583,15
@@
(list nil)))))
clausules)))))
+(defmacro etypecase (x &rest clausules)
+ (let ((g!x (gensym)))
+ `(typecase ,g!x
+ ,@clausules
+ (t (error "~X fell through etypeacase expression." ,g!x)))))
+
(defun notany (fn seq)
(not (some fn seq)))
-
(defconstant internal-time-units-per-second 1000)
(defun get-internal-real-time ()