comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
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
Date: 2011-12-21T19:49:57-07:00	[thread overview]
Message-ID: <jcu5sm$2mef$1@adenine.netfront.net> (raw)
In-Reply-To: <nospam-C0D037.14114021122011@news.aioe.org>

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 ---



  reply	other threads:[~2011-12-22  2:49 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 [this message]
2011-12-23  7:34     ` John B. Matthews
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