make struct/dc cooperate better with check syntax so that the struct name gets an arrow
This commit is contained in:
parent
5751ebe530
commit
61dbf1a34f
|
@ -1217,13 +1217,16 @@
|
||||||
dep-args)
|
dep-args)
|
||||||
(cdr clauses)))])))
|
(cdr clauses)))])))
|
||||||
|
|
||||||
|
(syntax-property
|
||||||
#`(build-struct/dc (list #,@structs)
|
#`(build-struct/dc (list #,@structs)
|
||||||
#,(list-ref info 1)
|
#,(list-ref info 1)
|
||||||
#,(list-ref info 2)
|
#,(list-ref info 2)
|
||||||
'#,struct-id
|
'#,struct-id
|
||||||
(quote-module-name)
|
(quote-module-name)
|
||||||
'#,struct-id
|
'#,struct-id
|
||||||
#,struct/c?))
|
#,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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user