Input checking for require-typed-struct.

svn: r9701
This commit is contained in:
Sam Tobin-Hochstadt 2008-05-06 20:40:38 +00:00
parent a3d192bc51
commit 03eac9472e

View File

@ -288,6 +288,7 @@ This file defines two sorts of primitives. All of them are provided into any mod
(define-syntax (require-typed-struct stx)
(syntax-case stx (:)
[(_ nm ([fld : ty] ...) lib)
(identifier? #'nm)
(with-syntax* ([(struct-info maker pred sel ...) (build-struct-names #'nm (syntax->list #'(fld ...)) #f #t)]
[oty #'(Opaque pred)])
#'(begin