public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Robert Dewar <dewar@gnat.com>
To: Daniel Lundqvist <daniel@malarhojden.nu>
Cc: gcc@gcc.gnu.org
Subject: Re: C++ and Ada.
Date: Sat, 02 Oct 2004 20:50:00 -0000	[thread overview]
Message-ID: <415E9F37.8000504@gnat.com> (raw)
In-Reply-To: <415E9A68.5050009@malarhojden.nu>

Daniel Lundqvist wrote:
> Hi,
> 
> I've been toying around with Ada lately. Trying to add Ada bindings to a 
> C++ library. Almost everything works perfect except one thing.
> I can't seem to import classes without virtual tables.
> 
> Pragma CPP_Constructor seem to require tagged types. And if I mark the 
> type tagged Pragma CPP_Class needs it to have a Vtable_Ptr field. But 
> then gnats idea of how class looks like isn't correct.

Right, with the current implementation, you can't import a class without
a virtual table as a tagged type (you could of course import it as a
normal Ada record).

As it turns out, we are starting to take another look at the whole
CPP pragma support, with an eye also on the new Interfaces feature
of Ada 95. We are preparing an initial discussion document on an
implementation approach for Interfaces, which we will post on this
list for discussion when it is ready. Our initial thought is to try
to make the implementation of Interfaces as compatible as possible
with the g++ MI model.

  parent reply	other threads:[~2004-10-02 12:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-02 14:31 Daniel Lundqvist
2004-10-02 18:34 ` Laurent GUERBY
2004-10-02 20:50 ` Robert Dewar [this message]
2004-10-03  6:48   ` Daniel Lundqvist
2004-10-03  6:51     ` Robert Dewar
2004-11-26 17:16       ` Luke A. Guest
2004-11-26 17:24         ` Robert Dewar
2004-11-26 19:10         ` Robert Dewar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=415E9F37.8000504@gnat.com \
    --to=dewar@gnat.com \
    --cc=daniel@malarhojden.nu \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).