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: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada array contiguity. Date: Sun, 19 Feb 2023 18:10:44 +0100 Organization: Adalog Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 19 Feb 2023 17:10:42 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="52a11a1dc0de377fb3af0a83b81dc5c7"; logging-data="486752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FYD+RvqEHmsanQQXnwRn/" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Cancel-Lock: sha1:uEZaiHQmHMXMn+7ZOQbxzzGiR3A= In-Reply-To: Content-Language: en-US, fr Xref: reader01.eternal-september.org comp.lang.ada:64945 List-Id: Le 19/02/2023 à 15:59, Niklas Holsti a écrit : >> (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. Certainly not if Comp'Size is not an integer number of bytes. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX https://www.adalog.fr https://www.adacontrol.fr