pre-encode during size

main
Matthew Butterick 5 years ago
parent 48c520253b
commit 28a9b78844

@ -58,7 +58,7 @@ We don't make port-arg the last arg (similar to other Racket port funcs) because
(unless port-arg (get-output-bytes port)))
(define (size xo [val #f] #:parent [parent #f] . args)
(send xo x:size val parent . args))
(send xo x:size (and val (send xo pre-encode val)) parent . args))
(define (xenomorphic-type? x) (is-a? x x:base%))
(define xenomorphic? xenomorphic-type?)

Loading…
Cancel
Save