[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kuml-devel
Subject:    Re: Repositories, Visitors and generic interfaces.
From:       Darius Stachow <shiva () dialup ! nacamar ! de>
Date:       1999-12-30 19:19:22
[Download RAW message or body]

On Mit, 29 Dez 1999, you wrote:
>Making a common base class for them would likely lead to a
>base class with several methods.  Methods for code generation, popups,
>editors, propertysheets etc... etc....  Thats a lot of methods in a
>common baseclass, looks ugly to me.  If we use the Visitor the will have
>only a single method in common, the one used for the double dispatch
>mentioned in text book that you site.  Then the concrete implementation
>of a given visitor will encode/hide the semantics of the operation.  It
>will also allow people to build new visitors without modifying existing
>code (infact, without even recompiling existing code), I think this is
>important.  
I've taken a look at the visitor pattern documentation and I think it's
useful. 
Fat classes are really ugly.

-- 
Open your mind ...
Darius Stachow

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic