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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fce935e9f3aa1da8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Interfacing with C: access/out parameters Date: Wed, 01 Sep 2004 11:46:54 +0200 Message-ID: <2plk1vFle4guU1@uni-berlin.de> References: <2ph6fjFkpsahU1@uni-berlin.de> <_UKYc.2897$w%6.1362@newsread1.news.pas.earthlink.net> <2pivcgFl9kl2U1@uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de pc0W/onM3xX3sXXu7WPvnwtS2GP03Sq4l2L1f2mZDlm25CUwE= User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3239 Date: 2004-09-01T11:46:54+02:00 List-Id: Jeffrey Carter wrote: > I would not advise using an overlay if you want to insure portability. > For a convention C function, Ada automatically converts parameters of > composite types to pointers (see Annex B), so you can "cheat" and use > this fact to pass a pointer to your record. I've done a similar thing in > a binding to fgets: I see. I was reticent to use this trick but if it is more portable I'll consider it again. Thanks!