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-Thread: 103376,8ecbc35ea893182f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Interfacing to C: big structures Date: Tue, 26 Feb 2008 15:12:17 -0600 Organization: Jacob's private Usenet server Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1204060378 20343 69.95.181.76 (26 Feb 2008 21:12:58 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 26 Feb 2008 21:12:58 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:20110 Date: 2008-02-26T15:12:17-06:00 List-Id: "Stephen Leake" wrote in message news:uhcfvvn79.fsf@stephe-leake.org... > Robert A Duff writes: > > Something like: > > > > type S is record ... end record; > > pragma Convention (C, S); > > > > X : aliased S; > > init (X'Access); -- or possibly 'Unchecked_Access > > foo (X'Access); -- or ... > > Why not: > > procedure Init (X : in out S); > procedure Foo (X : in out S); > > begin > init (X); > foo (X); > end; I agree; there is no good reason to use access type here (at least with the example given). Randy.