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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-08 19:29:41 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!pipex!uunet!gwu.edu!gwu.edu!not-for-mail From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: Why don't large companies use Ada? Date: 8 Dec 1994 22:16:09 -0500 Organization: George Washington University Message-ID: <3c8i5p$f59@felix.seas.gwu.edu> References: <3bcntp$dgj@gnat.cs.nyu.edu> <3btgfs$m8c@felix.seas.gwu.edu> <3c6ofm$50v@gnat.cs.nyu.edu> NNTP-Posting-Host: 128.164.9.3 Date: 1994-12-08T22:16:09-05:00 List-Id: In article <3c6ofm$50v@gnat.cs.nyu.edu>, Robert Dewar wrote: >Keith, the array conversion case is really not a special one. In general >an array conversion may involve a massive and possibly complex copy, and >most compilers will just generate a loop to do the copy, which handles >all possible cases, including the swapping of indices. > Interesting discussion here. Let me play devil's advocate. Under what circumstances will an engineer writing new Ada to interface with Fortran want to do this sort of array conversion? It seems to me that almost all arrays likely to be passed as parameters to Fortran would be of one or a few types declared as Fortran-friendly using pragma Convention. Indeed, which arrays would such engineers _not_ wish to make Fortran-friendly? I agree that the array conversion might be complex, but (1) not more so than manually generating a transpose, and (2) not used much, by the argument above. Am I on the right track? Mike Feldman