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-Thread: 103376,f0a4dc584cb226d8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.212.232 with SMTP id nn8mr10126734pbc.1.1324625696906; Thu, 22 Dec 2011 23:34:56 -0800 (PST) Path: lh20ni54541pbb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-transit.tcx.org.uk!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Basic question on Ada multi-dimensional arrays, are they true (contiguous) arrays? aliasing rules? Date: Fri, 23 Dec 2011 02:34:55 -0500 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-12-23T02:34:55-05:00 List-Id: In article , Jeffrey Carter wrote: > 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”).' Thanks! -- John B. Matthews trashgod at gmail dot com