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!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Generic_Rational Date: Sat, 17 Feb 2018 17:41:10 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 17 Feb 2018 16:41:10 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f04f94d6f13d804fabba40671728a56b"; logging-data="5124"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oHhaieesbakbFJrYetpsyo4bQ8Gm+sko=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:3ew6YBb/gb4rPHAzO3sA9gTvNQI= Xref: reader02.eternal-september.org comp.lang.ada:50495 Date: 2018-02-17T17:41:10+01:00 List-Id: On 02/17/2018 03:13 PM, hnptz@yahoo.de wrote: > > Does a loop from 2..2**15 exceed the bounds of an integer type by one ? (see also 3.5.4(21)). If so, then Candidate should be become a Long_Integer type following 3.6(19). What may be wrong with this interpretation? That's the minimum range required of the predefined type Integer. The actual range is implementation-defined and may be larger. I think the language would be better if it defined type Integer is range -(2 ** 15) + 1 .. 2 ** 15 - 1; and didn't have the optional Short_ and Long_ types. -- Jeff Carter "Pray that there's intelligent life somewhere up in space, 'cause there's bugger all down here on earth." Monty Python's Meaning of Life 61