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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,89d280850f5d8df X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-21 13:34:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed1.dti.ad.jp!giga-nspixp2!newsfeed.gol.com!feed1.news.rcn.net!rcn!not-for-mail From: Dan Nagle Newsgroups: comp.lang.ada Subject: Re: Passing Unconstrained Arrays from FORTRAN to an Ada95 subunit Date: Sun, 21 Jul 2002 16:32:33 -0400 Organization: Purple Sage Computing Solutions, Inc. Message-ID: References: <5489a352.0207210544.3d50d423@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: UmFuZG9tSVYzpURSnfEHLXRc3N52lHceJdS9dq+t5VHpE/4Shr6N4yK8sSIctmed X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 21 Jul 2002 20:33:18 GMT X-Newsreader: Forte Agent 1.9/32.560 Xref: archiver1.google.com comp.lang.ada:27286 Date: 2002-07-21T20:33:18+00:00 List-Id: Hello, That depends on how the array is declared in the Fortran. integer, dimension(n) :: a ! pass starting address integer, dimension(*) :: a ! pass starting address, no length integer, dimension(:) :: a ! pass descriptor For the (:) case, check the Fortran compiler's documentation for the descriptor definition. Most compilers supply this data, a few :-( consider this to be a proprietary secret. A few experiments should indicate how it works anyway. -- Cheers! Dan Nagle Purple Sage Computing Solutions, Inc. >Does modern Fortran pass the length implicitly? Apparently your Ada >compiler doesn't think so.