On 03/14/2018 06:16 PM, Lehi Toskin wrote:

On Wednesday, March 14, 2018 at 10:10:20 AM UTC-7, Matthew Butterick wrote:

    probably it requires a combination of peek + read, or copying the
    port.

That may be true, but I've been messing around getting *anything* to print from inside that function. I'm beginning to think it's never actually being run, which leads me to believe this may be a bug.

According to the docs, special-filter is only applied to values written using `write-special`. So it is never run on ordinary text.

`write-special` is part of the machinery that lets you, for example, `display` a pict in DrRacket and have an image show up in the interactions window. Most ports do not support specials; it doesn't make sense for ports that connect to the outside world (file ports, TCP ports, etc).

Your original solution using `make-output-port` was probably the right one.

Ryan

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to