[plt-scheme] What is the default object writer?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun May 2 18:56:22 EDT 2010

At Sun, 2 May 2010 18:49:56 -0400, Doug Orleans wrote:
> > If you set the parameter to #f, then an attempt to print an unreadable
> > value raises an exception.
> 
> Interesting.  Why does this not hold for the read-eval-print loop?
> 
> > (print-unreadable #f)
> > (make-object (class object% (super-new)))
> #(struct:object:stdin::374 ...)
> > (print (make-object (class object% (super-new))))
> write: printing disabled for unreadable value: #(struct:object:stdin::423 ...)

I guess the bug is that we haven't made `pretty-print' pay attention to
that parameter.



Posted on the users mailing list.