From: Michael Erdmann <Michael.Erdmann@snafu.de>
Subject: Q: Refactorizing code because Inheritance and Interfaces
Date: Sat, 18 Oct 2003 11:10:32 +0200
Date: 2003-10-18T11:10:32+02:00 [thread overview]
Message-ID: <8lc761-u81.ln1@boavista.snafu.de> (raw)
Dear all,
again i got a problem with inheritance. Lets assume the following
situation, that you have made a nice package reading in xml
files. The specification contains something like this:
package XML_Reader is .
type Object is new Sax.... with ... bla...
procedure X(This : in out Object......)
Some weeks later i have realized that this implemenation is nice,
but it is part of a generalization:
package Abtract_Reader is
type Object is abstract tagged null record;
type Handle is access all Object'Class;
procedure X(.... ) is abstract;
In order to line up the implemenation of the XML_Reader with the
Abstract_Reader interface i need to rewrite the complete XML_Reader.
Is there any way to avoid such situations?
Regards
M.Erdmann
PS:
In java i would use constructs as implements Sax..,Abstract_Reader.
next reply other threads:[~2003-10-18 9:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-18 9:10 Michael Erdmann [this message]
2003-10-20 18:57 ` Q: Refactorizing code because Inheritance and Interfaces Stephen Leake
2003-10-21 19:58 ` Michael Erdmann
2003-10-21 5:48 ` Simon Wright
2003-10-21 8:38 ` Marius Amado Alves
2003-10-21 19:50 ` Michael Erdmann
2003-10-25 12:11 ` Georg Bauhaus
2003-10-21 20:01 ` Michael Erdmann
2003-10-23 14:02 ` Jean-Pierre Rosen
-- strict thread matches above, loose matches on Subject: below --
2003-10-21 9:00 Lionel.DRAGHI
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox