Quick-and-dirty structure-printer available
Brian T Rice
water at tunes.org
Mon Aug 25 05:33:17 PDT 2003
I have another goodie for you all. :)
I've added an extremely simple printing mechanism that shows slot
structure with indentation. It's in src/print.slate, and is not loaded
with the normal libraries. Probably the easiest thing to do is to just
modify your local load-files to fileIn it along with everything else, if
you want to use it.
Anyway, the best way to use it is to call printStructure on some object to
have it print out its slots (up to the delegation slots) on ConsoleOutput.
You can direct it to other streams with printStructureOn:.
There are still a few bugs in it, when printing certain Method objects,
and also it's generally just a fairly dumb system for printing, but it
works.
--
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/
More information about the Slate
mailing list