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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,68b2e2c0309a6e88 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Question on interface Ada to C Date: Wed, 26 May 2004 18:01:00 +0200 Organization: AdaCL Message-ID: <1516083.1ZQvWAvWaJ@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1085587741 04 23539 1H3MG5BLukaVS0Ru 040526 16:09:02 X-Complaints-To: usenet-abuse@t-online.de X-ID: XMMGGTZV8ebeC-3UL-IOPk+wYwnW3gb2OtulrUUDkODkn7DxTCJYQB User-Agent: KNode/0.7.7 Xref: controlnews3.google.com comp.lang.ada:855 Date: 2004-05-26T18:01:00+02:00 List-Id: James Alan Farrell wrote: > Thank you for all the answers. > > Why is it in out? The quick answer is that is how it was done in the > code I inherited. > > From what I understand, this was done to allow C to use a pointer > argument. That does not match my understanding of how Ada works, but > I am new to Interfaces.C and do not have a good understanding of how > that works. Your understanding is right of corse. "out" and "in out" both create call by reference of convetion C is used. "in" on records is call by reference as well. However, there is a convention C_Pass_By_Copy if you need fine tuning. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com