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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2ceb82769e7e23b X-Google-Attributes: gid103376,public From: matthew_heaney@acm.org (Matthew Heaney) Subject: Re: Help needed in port to GNAT95 from verdix Date: 1998/05/14 Message-ID: #1/1 X-Deja-AN: 353416929 Content-Transfer-Encoding: 8bit References: <6jcvoc$drd$1@plug.news.pipex.net> <355B227D.2858F2BD@elca-matrix.ch> <355B319B.BAFDC332@earthling.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Organization: Network Intensive Newsgroups: comp.lang.ada Date: 1998-05-14T00:00:00+00:00 List-Id: In article <355B319B.BAFDC332@earthling.net>, Charles Hixson wrote: (start of quote) It seems to me that I have been reading that it should be: type Byte is -128..127; or it won't fit into 8 bits, which certainly seems to be what you are planning here. Something about values requiring symmetry around 0? (end of quote) No - that was my fault. I was trying to figure out why the size of an object wasn't being set to 8 bits as requested, but I my hypothesis re the range of the base type was incorrect. Sorry for the confusion. Anyway, if you need a data type to represent a raw, uninterpreted sequence of 8 bits (ie byte), then use the types in Interfaces. That is a predefined package, and so the types are already declared for you. Something like type Byte is new Interfaces.Unsigned_8;