This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: So what is wrong with v3 C++
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: So what is wrong with v3 C++
- From: Per Bothner <per at bothner dot com>
- Date: 02 Jul 2001 20:30:15 -0700
- Cc: gdb at sources dot redhat dot com
- References: <200106291856.f5TIuWv01637@fillmore.constant.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
> Note, since we're at it, you might as well ask the Java people about
> outstanding issues. Fixing many of the C++ related ones will most
> probably help out Java as well, for those with an aversion to
> C++. (This scoping stuff seems to be endemic to both java and C++.)
Absolutely.
Almost all of the Java ABI used by GCJ is defined as a subset of
the C++ ABI. The main exception is handling of "interface inheritance"
and "interface method calls". A Java interface is basically a
C++ virtual abstract base class with no non-static fields, but it is
implemented in a way that doesn't need "virtual bases" or offset
adjustment.
For example fixing support for namespaces would be very helpful
for Java, as Java classes are organized into packages - which are
basically namespaces.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/