comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Ada array contiguity.
Date: Sun, 19 Feb 2023 15:28:23 +0100	[thread overview]
Message-ID: <tstbm6$doua$1@dont-email.me> (raw)
In-Reply-To: <tst8h6$de2q$1@dont-email.me>

Le 19/02/2023 à 14:34, Rod Kay a écrit :
> Hi all,
> 
>     I've been told that Ada array elements are not guaranteed to be 
> contiguous unless the 'Convention C' aspect is applied.
> 
>     Is this correct ?

The strength of Ada is that it protects you from all implementation 
details, thus allowing compilers to choose the most efficient 
implementation. Therefore, the answer is yes.

(BTW: try to find a definition of "contiguous". At byte level? At word 
level? What if the element does not fill a byte?)

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr

  reply	other threads:[~2023-02-19 14:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-19 13:34 Ada array contiguity Rod Kay
2023-02-19 14:28 ` J-P. Rosen [this message]
2023-02-19 14:59   ` Niklas Holsti
2023-02-19 15:08     ` Dmitry A. Kazakov
2023-02-19 17:10     ` J-P. Rosen
2023-02-19 17:54       ` Niklas Holsti
2023-02-19 19:05         ` Dmitry A. Kazakov
2023-02-20  7:12         ` J-P. Rosen
2023-02-19 22:02 ` Jeffrey R.Carter
2023-03-01 13:22 ` Rod Kay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox