[racket-dev] printing images in REPL

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Aug 26 19:17:44 EDT 2010

>From what I can tell, it comes from ensuring that DrRacket shares the
htdp/image (or whatever) namespace with the running program so the
structs are the same and DrRacket's default renderer is detecting it.
I'm not sure how to replicate it though. (I tried for a bit so I could
make #lang frtime work.)


On Thu, Aug 26, 2010 at 11:55 AM, Shriram Krishnamurthi <sk at cs.brown.edu> wrote:
> What is the #lang magic that makes
>> (get-image-from-web "http://racket-lang.org/logo.png")
> (instantiate (class ...) ...)
> show the image rather than just its constructor?
> Shriram
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the dev mailing list.