From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada array contiguity. Date: Sun, 19 Feb 2023 16:08:09 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Feb 2023 15:08:11 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="b688fff65d5e218a4c1e9cadbb53e098"; logging-data="374519"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/78/AXROZVwsXlPB9hXF1CQVucc5Vh/NE=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Cancel-Lock: sha1:0c2TWjRSd2aVq7HSGRbTovtCjAs= Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64944 List-Id: On 2023-02-19 15:59, Niklas Holsti wrote: > On 2023-02-19 16:28, J-P. Rosen wrote: >> (BTW: try to find a definition of "contiguous". At byte level? At word >> level? What if the element does not fill a byte?) > > Indeed. But it seems to me that Arr'Size = Arr'Length * Comp'Size is the > meaning usually intended for programming purposes. Rather: the bit offset of an element is a linear function of its position. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de