From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,896d86ef3723978c X-Google-Attributes: gid103376,public From: jsa@alexandria.organon.com (Jon S Anthony) Subject: Re: maintenance of overriding subprograms Date: 1997/09/09 Message-ID: #1/1 X-Deja-AN: 271061779 References: <340C2EA5.B9F@gsfc.nasa.gov> <341065D7.4D41@gsfc.nasa.gov> <34145A2F.3659@pseserv3.fw.hac.com> Distribution: world Organization: PSINet Newsgroups: comp.lang.ada Date: 1997-09-09T00:00:00+00:00 List-Id: In article bobduff@world.std.com (Robert A Duff) writes: > In article <34145A2F.3659@pseserv3.fw.hac.com>, > W. Wesley Groleau x4923 wrote: > >If your names are well-chosen, and your hierarchy well-designed, > >wouldn't it be unnecessary (except for the occasional extreme case) > >to hunt down a lot of other stuff to understand the item at hand? > > I don't think so. If I see: > > package P is > type T is new Some_Parent with ...; > procedure Foo(X: T); > private > ... > end P; > > How on Earth am I supposed to know about the 17 primitive operations of > type T? Right. You can't without looking them all up. And it gets a _lot_ worse with MI. This is just the old problem of OO (typically swept under the rug by OO fanatics) that it can cause all sorts of maintenance problems. > >Conversely, if one has to study all the ancestors in great detail > >to do anything with a particular descendant, haven't we lost much of > >the reduced work alleged to be acheived by inheritance? IMO, reducing work is not and never really has been a benefit of OO. That's not what its good for. > Well, not really. For example, think of all those clients of the > *parent* type that happily use the derived type without even *knowing* > about it. And possibly shooting themselves in the foot and generating all sorts of maintenance nightmares to where the whole thing collapses under its own bloated opaque weight. > It depends who's doing the "alleging", I guess. It ranges from "OOP > is a useful tool" to "OOP will cure all the world's ills". ;-) To "OOP is outright dangerous" if not handled very carefully. /Jon -- Jon Anthony OMI, Belmont, MA 02178, 617.484.3383 "Nightmares - Ha! The way my life's been going lately, Who'd notice?" -- Londo Mollari