From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e0e945d31e5bac78 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-11 05:18:55 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!news-nue1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: problem with CPP_* pragmas Date: Thu, 11 Mar 2004 13:18:54 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1079011134 7191 134.91.1.34 (11 Mar 2004 13:18:54 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 11 Mar 2004 13:18:54 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:6231 Date: 2004-03-11T13:18:54+00:00 List-Id: Szymon Guz 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