[racket-dev] printing images in REPL
>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.)
Jay
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
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93