From: Kura <kuraitou@gmail.com>
Subject: Re: Upcasting interfaces with CPP convention in GNAT
Date: Thu, 2 Nov 2023 08:08:24 -0700 (PDT) [thread overview]
Message-ID: <1709521b-d44d-4a2e-8833-cb642e706954n@googlegroups.com> (raw)
In-Reply-To: <ui0an7$27m9p$1@dont-email.me>
On Thursday, November 2, 2023 at 10:11:55 AM UTC-4, J-P. Rosen wrote:
> Le 02/11/2023 à 13:20, Kura a écrit :
> > type IBase is interface;
> > pragma Convention (C_Plus_Plus, IBase);
> > type IBase_Ptr is access all IBase'Class;
> >
> > type IDerived is interface and IBase;
> > pragma Convention (C_Plus_Plus, IDerived);
> > type IDerived_Ptr is access all IDerived'Class;
> I don't know if this is the cause of your problem, but you should give
> convention C_Plus_Plus to the pointer types too (IBase_Ptr and
> IDerived_Ptr).
That did not solve my problem, but thank you for the tip.
next prev parent reply other threads:[~2023-11-02 15:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 12:20 Upcasting interfaces with CPP convention in GNAT Kura
2023-11-02 14:11 ` J-P. Rosen
2023-11-02 15:08 ` Kura [this message]
2023-11-03 21:13 ` Kura
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox