make struct/dc cooperate better with check syntax so that the struct name gets an arrow

This commit is contained in:
Robby Findler 2014-05-19 13:34:52 -05:00
parent 5751ebe530
commit 61dbf1a34f

View File

@ -1217,13 +1217,16 @@
dep-args) dep-args)
(cdr clauses)))]))) (cdr clauses)))])))
#`(build-struct/dc (list #,@structs) (syntax-property
#,(list-ref info 1) #`(build-struct/dc (list #,@structs)
#,(list-ref info 2) #,(list-ref info 1)
'#,struct-id #,(list-ref info 2)
(quote-module-name) '#,struct-id
'#,struct-id (quote-module-name)
#,struct/c?)) '#,struct-id
#,struct/c?)
'disappeared-use
(list (syntax-local-introduce struct-id))))
(define-syntax (-struct/dc stx) (do-struct/dc #f stx)) (define-syntax (-struct/dc stx) (do-struct/dc #f stx))