This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reenabling Ada by default


* Per Bothner:

> You might also look at the GCJ way of implementing Java interfaces.
> An object reference is a plain pointer, and there are not extra
> per-object "vobject" fields as in C++.  Instead we use a kind of
> double dispatch using initialization-time-computed indexin, which
> yields constant-time dispatch.

Can you provide a pointer to a short, high-level documentation of this
approach?

It's probably a standard implementation technique for OO languages,
but by just looking at the code, I've trouble understanding what's
going on.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]