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,b386f2cc2e9ff212 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-03 00:24:31 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!EU.net!chsun!mlma11.matrix.ch!user From: Mats.Weber@matrix.ch (Mats Weber) Subject: Re: Interfaces.Ada Message-ID: Sender: usenet@eunet.ch Organization: ELCA Matrix SA References: <39602v$3rl@felix.seas.gwu.edu> <396agd$9bt@network.ucsd.edu> Date: Wed, 2 Nov 1994 13:55:07 GMT Date: 1994-11-02T13:55:07+00:00 List-Id: In article <396agd$9bt@network.ucsd.edu>, mbk@inls1.ucsd.edu (Matt Kennel) wrote: > When people make new langauges why do they implement the C storage > layout for multi-dimensional arrays instead of that of Fortran? E.g. > as it seems, Ada9x, Modula-3. There is a technical reason for this, which appears in Pascal, where type Matrix is array [1 .. n, 1 .. m] of Real; is defined as equivalent to type Matrix is array [1 .. n] of array [1 .. m] of Real; so it is quite natural to chose an ordering different from FORTRAN. BTW the above is not true in Ada, and the layout of arrays in memory is not sepcified by the language. Mats