<!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>That's more a question for the PLT team, but I suggest you read section 4.5
of the PLT language manual. Among other things, structure inspectors make it
possible to make structs opaque for some parts of a program and
visible for other parts.</DIV>
<DIV>Jos</DIV>
<DIV> </DIV>
<DIV>(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))<BR>
(lambda(x)(lambda(y)(x(x y)))))<BR> (lambda(x)(x)x))<BR>
(lambda()(printf "Greetings, Jos~n"))))</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=gherson@snet.net href="mailto:gherson@snet.net">George Herson</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jos.koot@telefonica.net
href="mailto:jos.koot@telefonica.net">jos koot</A> ; <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> Wednesday, March 14, 2007 2:58
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [plt-scheme] Re: newbie
question: printing structs?</DIV>
<DIV><BR></DIV>Good to know, Jos.<BR><BR>Why aren't structures made with this
minimal inspector<BR>by default? I had a pretty confusing time with
this<BR>myself. Fundamental to understanding anything with<BR>contents
is seeing them.<BR><BR>Does creation of structures occur alot faster
than<BR>creation of equivalent (small) hash tables?<BR><BR>thank
you,<BR>george<BR><BR>--- jos koot <<A
href="mailto:jos.koot@telefonica.net">jos.koot@telefonica.net</A>>
wrote:<BR><BR>> You also will have to take care of the inspector,<BR>>
i.e:<BR>> <BR>> (define-struct a (x y z))<BR>> (define sa (make-a 1 2
3))<BR>> sa ; --> #<struct:a><BR>> <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)<BR>> <BR>>
Jos<BR>> <BR>> ----- Original Message ----- <BR>> From:
Andrew Reilly <BR>> To: PLT-Scheme mailing list
<BR>> Sent: Tuesday, March 13, 2007 7:30 AM<BR>>
Subject: [plt-scheme] Re: newbie question:<BR>> printing structs?<BR>>
<BR>> <BR>> On Tue, Mar 13, 2007 at 04:53:11PM +1100,
Andrew<BR>> Reilly wrote:<BR>> > When debugging, how can
I print the entire<BR>> contents of a struct?<BR>> <BR>>
Aah. I think I've just got it:<BR>> (print-struct #t)
gates subsequent display of<BR>> 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>> <BR>> <A
href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</A><BR>>
> _________________________________________________<BR>> For
list-related administrative tasks:<BR>> <BR>> <A
href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</A><BR>>
<BR><BR></BLOCKQUOTE></BODY></HTML>