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=0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:aed:2469:: with SMTP id s38mr18264460qtc.190.1568289654744; Thu, 12 Sep 2019 05:00:54 -0700 (PDT) X-Received: by 2002:a05:6830:144c:: with SMTP id w12mr16413691otp.110.1568289654223; Thu, 12 Sep 2019 05:00:54 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!o24no10792649qtl.0!news-out.google.com!x7ni92qtf.0!nntp.google.com!o24no10792637qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 12 Sep 2019 05:00:53 -0700 (PDT) In-Reply-To: <4d103621-ed4f-43b1-8d83-d11c822ce9eb@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.76.112.16; posting-account=fNO1SwoAAAARgeF8HKn4Duw-aHSqtuTg NNTP-Posting-Host: 130.76.112.16 References: <8685ca60-7873-44d9-b088-deada2aa074e@googlegroups.com> <4d103621-ed4f-43b1-8d83-d11c822ce9eb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <263fcfcf-1353-4694-8692-99bffa8554e5@googlegroups.com> Subject: Re: Complete Simple Examples of "Pragma Import (CPP,...) With Qualifiers? From: "Ruby_Tuesday@gmail.com" Injection-Date: Thu, 12 Sep 2019 12:00:54 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57136 Date: 2019-09-12T05:00:53-07:00 List-Id: > > On Wednesday, September 11, 2019 at 9:16:04 PM UTC+3, Ruby_T...@gmail.com >> wrote: > > > > Are there other versions of this that I could see? What about C++ qualifiers, members in classes, and namespaces how are they referenced in the pragma? > > On Thursday, September 12, 2019 at 12:50:44 AM UTC-5, god...@adacore.com wrote: > > Class fields may be mapped to > record, but you need to control memory layout carefully. So, direct binding to > C++ is not so simple and it is very complicated to support it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Does anyone have an intuitive tutorial on how to accomplish this? How does the memory layout differ for different things pointed to by the pragma's "External_Name"? Basically, with a simple but complete example how is the Ada code written? Thank you, Ruby