Input checking for require-typed-struct.
svn: r9701
This commit is contained in:
parent
a3d192bc51
commit
03eac9472e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user