change prop:custom-print-as-constructor to more general prop:custom-print-quotable
original commit: 899e85f94f43bf4298c128505da919629dbceeee
This commit is contained in:
commit
dd65e681e2
|
@ -998,10 +998,13 @@
|
|||
(prefab-struct-key v))
|
||||
(andmap quotable? (vector->list (struct->vector v)))]
|
||||
[(struct? v) (if (custom-write? v)
|
||||
(if (and (custom-print-as-constructor? v)
|
||||
(custom-print-as-constructor-accessor v))
|
||||
#f
|
||||
#t)
|
||||
(case (or (and (custom-print-quotable? v)
|
||||
(custom-print-quotable-accessor v))
|
||||
'self)
|
||||
[(self always) #t]
|
||||
[(never) #f]
|
||||
[(maybe)
|
||||
(andmap quotable? (vector->list (struct->vector v)))])
|
||||
#f)]
|
||||
[(struct-proxy? v) #f]
|
||||
[(mpair? v) #f]
|
||||
|
|
Loading…
Reference in New Issue
Block a user