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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b05a32aaf1089ed,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-14 07:08:33 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Passing complex structures between ADA and FORTRAN Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Fri, 14 Sep 2001 10:08:16 EDT Organization: http://www.newsranger.com Date: Fri, 14 Sep 2001 14:08:16 GMT Xref: archiver1.google.com comp.lang.ada:13075 Date: 2001-09-14T14:08:16+00:00 List-Id: In article , joanna.chambers@bae.co.uk says... >I am trying to pass structures, which in some places are 4 deep >across from ada to Fortran and vice versa. The integers are all >single precision, but the real values are all double precision. >However, the boundaries appear to be mixed up, and data is being lost >and slipping to the next item in the structure when passed. Changing When you do cross-language data structure passing, you are going to need to declare things on the Ada side either with "pragma Convention", or with a "for use at" record representation clause to explicitly specify where every record field is located. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com (posting via dialup. Our corporate internet access point was in Manhattan...)