From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:a37:bd7:: with SMTP id 206mr2514914qkl.297.1634181137254; Wed, 13 Oct 2021 20:12:17 -0700 (PDT) X-Received: by 2002:a25:ce14:: with SMTP id x20mr3635794ybe.139.1634181136590; Wed, 13 Oct 2021 20:12:16 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 13 Oct 2021 20:12:16 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.146.248.243; posting-account=XGCYegoAAADY19DGgU_zTfTSbVlfUJ_a NNTP-Posting-Host: 98.146.248.243 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Custom Storage Pool questions From: "philip...@gmail.com" Injection-Date: Thu, 14 Oct 2021 03:12:17 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62993 List-Id: On Wednesday, October 13, 2021 at 6:21:45 PM UTC-7, Randy Brukardt wrote: > There's no use to an Ada dynamic library -- if it's only for your=20 > organization's use, static linking is way better. And if it is for=20 > everyone's use, it has to have a C interface, thus no tagged types. A few months ago a customer requested Python for Windows support for a piec= e of hardware I sold him. The shortest path, which proved to be surprising= ly elegant and very easy to implement, was to create a Windows .dll for him= with a GNAT library project. I just wrote a few new Ada subprograms to en= capsulate my existing (and substantial) Ada support code. Those wrapper su= bprograms do indeed present a C interface using "PRAGMA Export(Convention = =3D> C..."