This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: setup.exe rebase patch
Rob,
On Sun, Mar 03, 2002 at 06:20:33AM +1100, Robert Collins wrote:
> Well if you can clarify what aspect is cheating, I'm happy to discuss
> factoring approaches.
Sorry for being vague and for being flippant too. By "cheating," I
was specifically referring to violating a basic premise of the Memento
pattern -- which is the state is opaque. As you have already mentioned,
either the object must persist itself or something external must perform
this operation.
The Memento pattern seems to be a reasonable factoring approach that
minimizes the breaking of encapsulation. I will either use this approach
or have my list/map class persist itself to/from your io_stream class.
Thanks,
Jason