comp.lang.ada
 help / color / mirror / Atom feed
From: bs@alice.UUCP
Subject: Re: C++ as a way to use private types in C
Date: Fri, 20-Mar-87 09:35:52 EST	[thread overview]
Date: Fri Mar 20 09:35:52 1987
Message-ID: <6735@alice.uUCp> (raw)
In-Reply-To: 8703200117.AA10060@ucbvax.Berkeley.EDU

In article <8703200117.AA10060@ucbvax.Berkeley.EDU>, WELTY@GE-CRD.ARPA.UUCP writes:
> 
> >C++ is very similar to Ada, except for tasking where the older C-style
> >facilities are used.
> 
> C++ contains a number of serious differences, actually ...
> 
> Objects in C++ (like objects in Flavors, CommonLoops, Smalltalk, etc.)
> may be dynamically allocated and freed -- Ada Generics are a somewhat
> weaker notion.  Also, C++ provides single inheritance (unfortunately,
> it does not support multiple inheritance; its designers feel that multiple
> inheritance has unacceptable performance penalties).

One of the ways C++ differs from Smalltalk and the object based
Lisps is in efficiency (typically differences in low-level efficiency is
measured in factors, not percents). To preserve this difference I avoid
inherently slow features like the plague. However, multiple inheritance
is not one of those. I have an experimental version of C++ with multiple
inheritance. The added overhead in calling a member function is one
memory reference plus one addition.

The snag is that I'm still not fully convinced that multiple inheritance
is a significant improvement over single inheritance. but I guess that
this is not the right newsgroup for that question.

  reply	other threads:[~1987-03-20 14:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-03-19 19:03 C++ as a way to use private types in C WELTY RICHARD P
1987-03-20 14:35 ` bs [this message]
  -- strict thread matches above, loose matches on Subject: below --
1987-03-31 17:08 WELTY
1987-03-19 16:20 WELTY RICHARD P
1987-03-19  3:09 larry
1987-03-19 16:40 ` bs
1987-03-19 16:57 ` Greg Lomow
1987-03-20 14:03   ` firth
1987-03-20 14:55 ` Leonard Vanek
1987-03-21  3:45 ` gore
replies disabled

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