[plt-scheme] structure inspectors
Thanks for the tip---I didn't know about print-struct; that solves one
part of my mystification about inspectors. But how does this
apply to built-in structures? I can't simply pass an inspector to
the-style-list because it is already defined, so I still have the problem
of the code being opaque.
Nick Chubrich.
On Mon, 22 May 2006, Noel Welsh wrote:
> Sounds like you just want to print out the contents of the
> structure, in which case:
>
> http://schemecookbook.org/view/Cookbook/StructurePrinting
>
> HTH,
> Noel
>
> --- Nicholas Chubrich <chubrich at cs.brandeis.edu> wrote:
>
> > I would like to examine a built-in structure,
> > specifically the-style-list
> > in the MrEd editor toolkit. This means dealing with
> > inspectors. I saw in
> > the list archive that you could use a procedure called
> > make-->vector to
> > bypass inspectors, but I cannot get this to work, because
> > I am unable to
> > come up with a struct type descriptor. It should be
> > struct:style-list%,
> > but this ends up being an unbound value in the
> > environment.
> > Any suggestions? I would like to be able to look at
> > style lists
> > in a single glance, without having to access each field
> > individually.
> >
> >
> > Thanks,
> >
> > Nick Chubrich.
>
>
> Email: noelwelsh <at> yahoo <dot> com noel <at> untyped <dot> com
> AIM: noelhwelsh
> Blogs: http://monospaced.blogspot.com/ http://www.untyped.com/untyping/
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>