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-Thread: 1094ba,df9eda71533d664e X-Google-Attributes: gid1094ba,public X-Google-ArrivalTime: 1994-12-09 05:27:11 PST Path: bga.com!news.sprintlink.net!hookup!news.mathworks.com!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Why don't large companies use Ada? Date: 9 Dec 1994 06:49:20 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3c9g80$auv@gnat.cs.nyu.edu> References: (null) <3c5pc1$18m$2@mhadf.production.compuserve.com> NNTP-Posting-Host: gnat.cs.nyu.edu Xref: bga.com comp.lang.ada:8453 comp.lang.fortran:7036 Date: 1994-12-09T06:49:20-05:00 List-Id: Not just EQUIVALENCE, but much more importantly in Fortran you can pass a two dimensional array to a routine that treats it as a one dimensional array, and also you can pass a single column (but not a single row) of a two dimensional array as a one dimensional array. These features are often used. Since we have pragma convention in Ada 9X, I don't see much need for Fortran to muck around. Interesting note: if you are trying to convert FOrtran code to Ada, and it does use the column slicing trick, then you are in trouble, or more accurately, you will have to play low level games with unchecked conversion of access types, because Ada does not allow slicing of multi-dimensional arrays. Note incidentally that the ability in Fortran to pass columns is exactly what defines the requirement for array mapping in Fortran, whereas in Ada there are no such semantics, so the array ordering is not specified by the language (although it is slightly suggested by the form of array aggregates for multi-dimensional arrays).