comp.lang.ada
 help / color / mirror / Atom feed
From: micro-heart-of-gold.mit.edu!news.bbn.com!usc!elroy.jpl.nasa.gov!aero.org! jordan@bloom-beacon.mit.edu  (Larry M. Jordan)
Subject: Re: Ada vs. C++ Paper (was Re: Why ADA?)
Date: 17 Apr 92 21:17:51 GMT	[thread overview]
Message-ID: <1992Apr17.211751.24319@aero.org> (raw)

>One problem with C++'s inheritance is naming conflicts.  If an operation
>is given by a parent and a grandparent have the same name, the user must
>explicitly name the grandparent in the call if they wish to invoke that
>operation.  This completely violates the infoirmation hiding OO was
>supposed to provide us.  What happens when we redesign that parent/
>grandparent - all the users of that class must be rewritten.  No, Eiffel
>does not suffer from this problem (a name can only propagate out of a
>class with one meaning).  You use the renames construct to change the
>name you're exporting - don't know about TPascal.

I think you are describing invoking an overridden or redefined method.
(Please correct me if I've misunderstood.)
The redefined method must be qualified with the class name, or one gets
the redefining method.  Has Eiffel changed? I thought renaming was 
done in the INHERIT clause (by the inheriting class, not the defining class).  
 
Will a renaming declaration, as I've seen proposed in ARM, fix this
"problem" (I'm still not convinced).?

Does Ada "violate information hiding...", since a name can "propogate out 
of a [package] with more than one meaning"?   

--Larry %)

             reply	other threads:[~1992-04-17 21:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-04-17 21:17 micro-heart-of-gold.mit.edu!news.bbn.com!usc!elroy.jpl.nasa.gov!aero.org! [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-04-29  0:27 Ada vs. C++ Paper (was Re: Why ADA?) Dan Olson
1992-04-24 14:47 Richard Bielak
1992-04-20 16:27 dog.ee.lbl.gov!hellgate.utah.edu!cs.utexas.edu!asuvax!ennews!enuxha.eas.a
1992-04-18 13:03 Bjarne Stroustrup
1992-04-18  9:35 eru.mt.luth.se!lunic!sunic!lth.se!newsuser
1992-04-17 23:52 Xmiester
1992-04-17 16:31 Larry M. Jordan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox