hack evcase to support old and new 'else' bindings

svn: r9481

original commit: 01baad11a057d53c77b2f350739f79327c40054b
This commit is contained in:
Matthew Flatt 2008-04-25 21:36:37 +00:00
parent 8e0be36cc7
commit 3c43dd5f32

View File

@ -8,6 +8,7 @@
build-list
build-vector
compose)
(rename scheme/base base-else else)
"kw.ss")
(require-for-syntax syntax/kerncase
@ -136,8 +137,9 @@
(let ([tests (syntax->list (syntax (test ...)))])
(with-syntax ([(a-test ...)
(map (lambda (t)
(syntax-case t (else)
(syntax-case t (else base-else)
[else (syntax #t)]
[base-else (syntax #t)]
[_else (with-syntax ([t t])
(syntax (eqv? evcase-v t)))]))
tests)])