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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba0587ecc5989bed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-27 13:23:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!tor-nx1.netcom.ca!news1.tor.metronet.ca!nnrp1.tor.metronet.ca!not-for-mail Message-ID: <3CA2382C.70500@home.com> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Another problem with stream reading. References: <3CA0B5C4.2060804@home.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 27 Mar 2002 21:22:52 GMT NNTP-Posting-Host: 198.96.47.195 NNTP-Posting-Date: Wed, 27 Mar 2002 14:22:52 MDT Organization: MetroNet Communications Group Inc. Xref: archiver1.google.com comp.lang.ada:21729 Date: 2002-03-27T21:22:52+00:00 List-Id: Erik Sigra wrote: > tisdagen den 26 mars 2002 18.54 skrev du: > >>Just shooting from the hip here, I think the problem is that >>you gave the compiler an impossible assignment. By that, I >>mean that you've declared type Byte to have integer range >>0..255 and at the same time said its size has to be 8 bits. >>There is no room for that range and a sign bit (since it is >>integer here) to exist in 8 bits (you need 9). As a result >>of lying to HAL, HAL decided to disregard your statement >>"for Byte'Size use 8" and used 16 instead. >> > > If you look carefully at my code you can se that i did NOT write "Integer > range", just "range". And there is certainly no need for a sign bit for the > range 0 .. 255. If I lie to the compiler, it does certainly not disregard it. > It complais loudly. If I for example say "for Byte'Size use 7;", it replies > "size for "Byte" too small, minimum allowed is 8" Well, I did say that I was "shooting from the hip". I guess I missed this time :-P -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg