[plt-scheme] non-custom print

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun May 3 14:59:12 EDT 2009

At Fri, 1 May 2009 16:51:33 -0400, Doug Orleans wrote:
> Speaking of printable<%>, how do you access the default (non-custom)
> printer?  Say I implement custom-display in a class, but I want the
> write behavior to stay the same, i.e. "#(struct:object:foo% ...)".
> What do I put in the custom-write method?

You'd just write the result from `struct->vector'. This default
behavior is so simple that we didn't provide a more explicit way to
chain to it.

Posted on the users mailing list.