delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/03/05/08:02:19

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Tue, 05 Mar 2002 08:07:40 -0500
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: setup.exe rebase patch
In-reply-to:
<FC169E059D1A0442A04C40F86D9BA76008AAF7 AT itdomain003 DOT itdomain DOT net DOT au>
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
Cc: Cygwin-Apps <cygwin-apps AT sources DOT redhat DOT com>
Mail-followup-to: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>,
Cygwin-Apps <cygwin-apps AT sources DOT redhat DOT com>
Message-id: <20020305130740.GF1696@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.3.24i
References: <FC169E059D1A0442A04C40F86D9BA76008AAF7 AT itdomain003 DOT itdomain DOT net DOT au>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019