<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>You also will have to take care of the inspector, i.e:</DIV>
<DIV> </DIV>
<DIV>(define-struct a (x y z))<BR>(define sa (make-a 1 2 3))<BR>sa ; -->
#<struct:a></DIV>
<DIV><BR>(define inspector (make-inspector))<BR>(define-struct b (x y z)
inspector)<BR>(define sb (make-b 1 2 3))<BR>sb ; --> #(struct:b 1 2 3)</DIV>
<DIV> </DIV>
<DIV>Jos</DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=andrew-scheme@areilly.bpc-users.org
href="mailto:andrew-scheme@areilly.bpc-users.org">Andrew Reilly</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=plt-scheme@list.cs.brown.edu
href="mailto:plt-scheme@list.cs.brown.edu">PLT-Scheme mailing list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 13, 2007 7:30
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [plt-scheme] Re: newbie
question: printing structs?</DIV>
<DIV><BR></DIV>On Tue, Mar 13, 2007 at 04:53:11PM +1100, Andrew Reilly
wrote:<BR>> When debugging, how can I print the entire contents of a
struct?<BR><BR>Aah. I think I've just got it:<BR>(print-struct #t) gates
subsequent display of struct contents, which is also<BR>gated by the #f
argument to define-struct. Neat.<BR><BR>Cheers,<BR><BR>--
<BR>Andrew<BR>_________________________________________________<BR> For
list-related administrative tasks:<BR> <A
href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</A><BR></BLOCKQUOTE></BODY></HTML>