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)
(cdr clauses)))])))
#`(build-struct/dc (list #,@structs)
#,(list-ref info 1)
#,(list-ref info 2)
'#,struct-id
(quote-module-name)
'#,struct-id
#,struct/c?))
(syntax-property
#`(build-struct/dc (list #,@structs)
#,(list-ref info 1)
#,(list-ref info 2)
'#,struct-id
(quote-module-name)
'#,struct-id
#,struct/c?)
'disappeared-use
(list (syntax-local-introduce struct-id))))
(define-syntax (-struct/dc stx) (do-struct/dc #f stx))