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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0a4dc584cb226d8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.75.170 with SMTP id d10mr6609323pbw.6.1324522199932; Wed, 21 Dec 2011 18:49:59 -0800 (PST) Path: lh20ni50093pbb.0!nntp.google.com!news2.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Basic question on Ada multi-dimensional arrays, are they true (contiguous) arrays? aliasing rules? Date: Wed, 21 Dec 2011 19:49:57 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: NNTP-Posting-Host: 97.226.226.38 Mime-Version: 1.0 X-Trace: adenine.netfront.net 1324522199 88527 97.226.226.38 (22 Dec 2011 02:49:59 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Thu, 22 Dec 2011 02:49:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: 2011-12-21T19:49:57-07:00 List-Id: On 12/21/2011 12:11 PM, John B. Matthews wrote: > > I'm not sure the standard [1] says exactly how array components (§3.6) > must be stored, only that "all have the same subtype." Unchecked type > conversion (§13.9) suggests contiguous representation of components > for meaningful use. I'm not an implementor, so I'd welcome correction. ARM 3.6.2 has the following Implementation Advice: "'An implementation should normally represent multidimensional arrays in row-major order, consistent with the notation used for multidimensional array aggregates (see 4.3.3). However, if a pragma Convention(Fortran, ...) applies to a multidimensional array type, then column-major order should be used instead (see B.5, “Interfacing with Fortran”).' -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33 --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---