Made define-syntax-block less restrictive about source of bindings.
This commit is contained in:
parent
31aa47f136
commit
01f1add1cb
|
@ -54,20 +54,7 @@
|
|||
(syntax-list decl.external ...))
|
||||
"duplicate defined name"
|
||||
#'(define-syntaxes [decl.external ...]
|
||||
;; Easier way to ensure the internal names are bound than
|
||||
;; local-expand: bind them to an error macro and force the
|
||||
;; user to shadow them.
|
||||
(let-syntax
|
||||
([decl.internal
|
||||
(make-set!-transformer
|
||||
(lambda (stx)
|
||||
(raise-syntax-error #f
|
||||
"transformer must be defined within define-syntax-block"
|
||||
stx)))]
|
||||
...)
|
||||
(block
|
||||
body ...
|
||||
(values decl.internal ...))))])))
|
||||
(block body ... (values decl.internal ...)))])))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user