From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Problem with Position of the enumeration Type Date: Thu, 24 Jan 2019 17:43:06 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <3d782720-227d-4d86-b403-eacbd1b9d0d2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 24 Jan 2019 16:43:06 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="53af55b10e29090da1d6967fe29985f2"; logging-data="3225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GBBReWQNQyqCeHwTX3HIgN/L1r16MDME=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cancel-Lock: sha1:WqeSWFSaJprPDH7rZdhQjnQVVpE= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:55359 Date: 2019-01-24T17:43:06+01:00 List-Id: On 1/23/19 11:35 PM, Simon Wright wrote: > Niklas Holsti writes: > >> Such rules also commonly say that such types should not be used as >> array index types, because of the possible introduction of gaps in the >> array representations. > > Not, it seems, with GNAT: This is not a language rule. I can find nothing in the ARM about disallowing such types as array indices. So naturally GNAT and all other compilers must support it. -- Jeff Carter "When and now is this guitar piece from Stottlemeyer? Yes, it's with Mr. Dog in Gertrude's pinball forest." The World's Funniest Joke 133