Fixed in revision 1223. Thanks.
> (define ctop (make-custom-textual-output-port "ctop" (lambda (str start count) (printf "*** (write! ~s)\n" (substring str start (+ start count))) count) #f #f #f)) > (textual-port? ctop) #t > (binary-port? ctop) #f > (write 'blah ctop) *** (write! "blah") > (newline ctop) *** (write! "\n")
Fixed in revision 1223. Thanks.
> (define ctop custom- textual- output- port
(make-
"ctop"
(lambda (str start count)
(printf "*** (write! ~s)\n" (substring str start (+ start count)))
count)
#f #f #f))
> (textual-port? ctop)
#t
> (binary-port? ctop)
#f
> (write 'blah ctop)
*** (write! "blah")
> (newline ctop)
*** (write! "\n")