comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Upcasting interfaces with CPP convention in GNAT
Date: Thu, 2 Nov 2023 15:11:54 +0100	[thread overview]
Message-ID: <ui0an7$27m9p$1@dont-email.me> (raw)
In-Reply-To: <c00659fa-312b-4dcc-872f-0fabfde55c0dn@googlegroups.com>

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).

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr

  reply	other threads:[~2023-11-02 14:11 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 [this message]
2023-11-02 15:08   ` Kura
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