help / color / mirror / Atom feed
From: "J-P. Rosen" <>
Subject: Re: Upcasting interfaces with CPP convention in GNAT
Date: Thu, 2 Nov 2023 15:11:54 +0100	[thread overview]
Message-ID: <ui0an7$27m9p$> (raw)
In-Reply-To: <>

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 

J-P. Rosen
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX

  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