From: Hal Fulton Date: 2004-05-25T08:27:26+09:00 Subject: Re: How to pp-enable a class? Gavin Sinclair wrote: >>Are there good docs or even a tutorial on how to enable a class >>to be prettyprinted with pp? > >>It looks like the sort of thing I could figure out in 5 or 6 hours >>of experimentation. I'd rather not spend those if I can help it. > > I've never expended any effort "preparing" a class for pp'ing. I just > pp it and am happy with the result. > > Objects are just a recursive collection of objects and core types. > Core types have their pp defined, and objects are just structure. So > it should all Just Work. True in general. But I have a case (hence my question) where it doesn't "just work" and I'm not sure why. I can't reproduce it simply yet, or I'd show you. Hal