From: "John B. Matthews" <nospam@nospam.invalid>
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
Date: 2011-12-23T02:34:55-05:00 [thread overview]
Message-ID: <nospam-44CDE1.02345523122011@news.aioe.org> (raw)
In-Reply-To: jcu5sm$2mef$1@adenine.netfront.net
In article <jcu5sm$2mef$1@adenine.netfront.net>,
Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org> 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
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2011-12-23 7:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 1:08 Basic question on Ada multi-dimensional arrays, are they true (contiguous) arrays? aliasing rules? Nasser M. Abbasi
2011-12-21 19:11 ` John B. Matthews
2011-12-22 2:49 ` Jeffrey Carter
2011-12-23 7:34 ` John B. Matthews [this message]
2011-12-21 21:11 ` Adrian-Ken Rueegsegger
2011-12-21 21:13 ` Adrian-Ken Rueegsegger
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox