[saga-rg] multiple inheritance...

Thilo Kielmann kielmann at cs.vu.nl
Fri Sep 2 10:33:25 CDT 2005


Hi all,

using multiple interfaces (as in Java) exactly avoids code
inheritance. Classes just have to provide the sum of their interfaces;
where the implementation comes from (either cut-and-paste or
single/multiple inheritance) is a completely different story...

So, put the use of multiple interfaces into the spec and do not make
inheritance mandatory.


My 2 cents,


Thilo

On Fri, Sep 02, 2005 at 05:29:12PM +0200, Andre Merzky wrote:
> X-Original-To: kielmann at localhost
> Delivered-To: kielmann at localhost.cs.vu.nl
> Delivered-To: grdfm-saga-rg-outgoing at mailbouncer.mcs.anl.gov
> X-Original-To: grdfm-saga-rg at mailbouncer.mcs.anl.gov
> Delivered-To: grdfm-saga-rg at mailbouncer.mcs.anl.gov
> Date: Fri, 2 Sep 2005 17:29:12 +0200
> From: Andre Merzky <andre at merzky.net>
> To: Simple API for Grid Applications WG <saga-rg at ggf.org>
> Subject: [saga-rg] multiple inheritance...
> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mailbouncer.mcs.anl.gov
> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mailbouncer.mcs.anl.gov
> 
> Hi all, 
> 
> as we started to define the strawman in a OO way, we decided
> to use only simple OO features, and in particular no
> polumorphosm and multiple inheritance.  The strawman right
> now respects that.
> 
> However, as we now ponder over additional interfaces, such
> as permissions, we get into trouble: the file class would
> for example implement both the attribute and the permission
> interface, and hence would be inheriting multiple bases.
> 
> In terms of implementation this can be avoided I think,
> although not beautifully.  Hence the question, if that
> limitation is neccessary/wanted/needed on specification
> level.
> 
> Plymorphism on the other hand can _not_ easily be avoided on
> implementation level once it is written down in the spec,
> and hence should not enter it.
> 
> So, my opinion is to allow multiple interfaces on classes in
> the spec, bat take care that an implementation can be done
> w/o the need for multiple inheritance.
> 
> Any other opinions? :-)
> 
> If not, I would adjust the respective part in the intro.
> 
> Cheers, Andre.
> 
> 
> -- 
> +-----------------------------------------------------------------+
> | Andre Merzky                      | phon: +31 - 20 - 598 - 7759 |
> | Vrije Universiteit Amsterdam (VU) | fax : +31 - 20 - 598 - 7653 |
> | Dept. of Computer Science         | mail: merzky at cs.vu.nl       |
> | De Boelelaan 1083a                | www:  http://www.merzky.net |
> | 1081 HV Amsterdam, Netherlands    |                             |
> +-----------------------------------------------------------------+



-- 
Thilo Kielmann                                 http://www.cs.vu.nl/~kielmann/





More information about the saga-rg mailing list