comp.lang.ada
 help / color / mirror / Atom feed
From: matthew_heaney@acm.org (Matthew Heaney)
Subject: Re: Help needed in port to GNAT95 from verdix
Date: 1998/05/14
Date: 1998-05-14T00:00:00+00:00	[thread overview]
Message-ID: <matthew_heaney-ya023680001405982226590001@news.ni.net> (raw)
In-Reply-To: 355B319B.BAFDC332@earthling.net


In article <355B319B.BAFDC332@earthling.net>, Charles Hixson
<charleshixson@earthling.net> 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;




  parent reply	other threads:[~1998-05-14  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-13  0:00 Help needed in port to GNAT95 from verdix Paul Hussein
1998-05-14  0:00 ` Mats Weber
1998-05-14  0:00   ` Charles Hixson
     [not found]     ` <Esyp0E.5q0@world.std.com>
1998-05-14  0:00       ` Robert Dewar
1998-05-15  0:00         ` Larry Kilgallen
1998-05-19  0:00           ` John McCabe
1998-05-15  0:00         ` Jean-Pierre Rosen
1998-05-16  0:00           ` Robert Dewar
1998-05-14  0:00     ` Matthew Heaney [this message]
1998-05-15  0:00 ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox