Well if you can clarify what aspect is cheating, I'm happy to discuss
factoring approaches.

Rob

> -----Original Message-----
> From: Jason Tishler [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, March 03, 2002 3:16 AM
> To: Robert Collins
> Cc: Cygwin-Apps
> Subject: Re: setup.exe rebase patch
> 
> 
> Rob,
> 
> On Fri, Mar 01, 2002 at 07:08:53AM +1100, Robert Collins wrote:
> > Provide a Memento::ToString and Memento(String) or 
> Memento::ToStream 
> > and Memento(io_stream &)  pair. Then the config file class 
> becomes the 
> > caretaker, ensuring that the file goes to the right place, that io 
> > exceptions are handled etc., and the ToFoo and (Foo) pair 
> contains the 
> > serialisation logic. The serialisation logic is tightly 
> bound to the 
> > class content (as it has to be), but the persistence 
> mechanism is not.
> 
> OK, the above seems like "cheating," but I can live with that. :,)
> 
> Thanks,
> Jason
> 

Reply via email to