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!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!.POSTED.xdsl-213-196-221-111.netcologne.de!not-for-mail From: Frank Buss Newsgroups: comp.lang.ada Subject: Re: quiz for Sequential_IO Read Date: Sun, 3 Sep 2017 14:47:54 +0200 Organization: news.netcologne.de Distribution: world Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 3 Sep 2017 12:47:55 +0000 (UTC) Injection-Info: newsreader4.netcologne.de; posting-host="xdsl-213-196-221-111.netcologne.de:213.196.221.111"; logging-data="12656"; mail-complaints-to="abuse@netcologne.de" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:47912 Date: 2017-09-03T14:47:54+02:00 List-Id: On 09/03/2017 01:40 PM, Jeffrey R. Carter wrote: > On 09/03/2017 01:01 PM, Frank Buss wrote: >> type Byte is range 0..255; > > Note that Byte is a signed type, so Byte'Base will have a range that > includes -255 Why is it a signed type? The range says only 0..255, and in fact, I can write this: type Byte is range 0..255; for Byte'Size use 8; and it works as expected. -- Frank Buss, http://www.frank-buss.de electronics and more: http://www.youtube.com/user/frankbuss