On Wed, Mar 12, 2008 at 12:26:15PM -0400, Richard Heck wrote: > This got started because there was a crash that involved passing a > temporary to Paragraph::setLayout(), and I added a comment to the > effect that one ought not to do that. Then Andre suggested there must > be a better way, in particular, that maybe we could make Layout's > constructor private, etc. Unfortunately, you can't do that, because we > have a std::vector of Layout's. So I explored various other options, > and this was the best I could do. Maybe it isn't worth doing. That's > certainly a possibility. But I do worry that someone (probably me) will > make that same mistake again.
Maybe I still did not fully understand the concepts. Are 'DocumentClass' and 'LayoutFile' two completely distinct concepts such that we never can exchange a 'DocumentClass' for a 'LayoutFile' (but that happen to share a common implementation via some 'TextClass' base right now) _or_ do we have the case that we basically have a concept 'TextClass' coming in two varieties? Andre'