From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: problem with CPP_* pragmas
Date: Thu, 11 Mar 2004 13:18:54 +0000 (UTC)
Date: 2004-03-11T13:18:54+00:00 [thread overview]
Message-ID: <c2povu$70n$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: c2o51n$h2g$1@atlantis.news.tpi.pl
Szymon Guz <guzo@stud.ics.p.lodz.pl> wrote:
This compiles (not tried on Windows(TM) though):
with Interfaces.CPP;
package TestClass is
type CA is tagged
record
VTable : Interfaces.CPP.Vtable_Ptr;
end record;
pragma CPP_Class(Entity => CA);
pragma CPP_Vtable(
Entity => CA,
VTable_Ptr => VTable,
Entry_Count => 5);
function Create return CA'Class;
--probably: pragma Import(CPP, Create, ...);
pragma CPP_Constructor(Create);
end TestClass;
One change ist moving Create down so that CA is known to be
a CPP_Class type when Create is declared. "return CA'Class"
is what my GNAT RM says is required.
-- Georg
next prev parent reply other threads:[~2004-03-11 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-10 22:31 problem with CPP_* pragmas Szymon Guz
2004-03-11 13:18 ` Georg Bauhaus [this message]
2004-03-11 21:55 ` Szymon Guz
2004-03-12 18:52 ` Georg Bauhaus
2004-03-12 19:22 ` Szymon Guz
2004-03-12 20:16 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox