Re: [racket-dev] printing images in REPL

2010-08-28 Thread Shriram Krishnamurthi
The value I was returning is whatever kind of object is returned when you embed an image in the Definitions window. That is, this was a pasted, atomic image, not one created by a computation. I guess they're not treated the same, but I'm surprised that ASL processing the Definitions window

Re: [racket-dev] printing images in REPL

2010-08-28 Thread Shriram Krishnamurthi
... which was my original question. But thanks. On Sat, Aug 28, 2010 at 9:36 PM, Robby Findler ro...@eecs.northwestern.edu wrote: I guess you don't have the print handler set up right. On Sat, Aug 28, 2010 at 8:23 PM, Shriram Krishnamurthi s...@cs.brown.edu wrote: The value I was returning

Re: [racket-dev] printing images in REPL

2010-08-28 Thread Robby Findler
And sorry: here's a keyword: read-language. You'll want to set up your language so that it can answer those queries. Then drracket will call the info proc with 'configure-runtime. I could have sworn that was documented somewhere, but I'm not finding it (I think that must be a bug in searching or

Re: [racket-dev] printing images in REPL

2010-08-26 Thread Robby Findler
At the moment there is a barn-door sized security hole in DrRacket, whereby it will take any snip% instance from the user's program and just display it in the repl. You can exploit this for Good by making the current-print of your language turn some values into snips (like images and things).