comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <Florian.Weimer@rus.uni-stuttgart.de>
Subject: Re: Representation clauses and streams
Date: 1999/12/29
Date: 1999-12-29T00:00:00+00:00	[thread overview]
Message-ID: <tg1z85cyyz.fsf@mercury.rus.uni-stuttgart.de> (raw)
In-Reply-To: 386A3C20.31A06016@telepath.com

Ted Dennison <dennison@telepath.com> writes:

> >    Bits_Per_Octet : constant := 8;
> >
> >    type One_Octet_Type   is range 0 .. 2**(1*Bits_Per_Octet) - 1;
> >    for One_Octet_Type'Size use Bits_Per_Octet;
> >
> > is written as a two-octet value to a stream (Stream_Element'Size is,
> 
> Hmm. I'm curious what would happen if you changed that type to a modular
> type of the same range.

It works, thanks. In fact, it seems as if GNAT takes the sign bit into
account, which is, in my eyes, quite unnecessary.




  reply	other threads:[~1999-12-29  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-29  0:00 Representation clauses and streams Florian Weimer
1999-12-29  0:00 ` Ted Dennison
1999-12-29  0:00   ` Florian Weimer [this message]
1999-12-29  0:00 ` Robert Dewar
1999-12-30  0:00   ` Florian Weimer
2000-01-02  0:00     ` Tucker Taft
2000-01-03  0:00       ` Robert Dewar
2000-01-03  0:00         ` Robert A Duff
2000-01-03  0:00           ` Robert Dewar
2000-01-04  0:00       ` Florian Weimer
2000-01-04  0:00         ` Robert Dewar
replies disabled

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