comp.lang.ada
 help / color / mirror / Atom feed
From: mark_lundquist@my-deja.com
Subject: Re: bitstreams
Date: Tue, 16 Jan 2001 17:36:32 GMT
Date: 2001-01-16T17:36:32+00:00	[thread overview]
Message-ID: <9420qv$2d$1@nnrp1.deja.com> (raw)
In-Reply-To: 9406cs$g4i$1@nnrp1.deja.com

In article <9406cs$g4i$1@nnrp1.deja.com>,
  Robert Dewar <robert_dewar@my-deja.com> wrote:
> In article <93vik8$u08$1@nnrp1.deja.com>,
>   mark_lundquist@my-deja.com wrote:
> > Note that shift and rotate functions are primitive operations
> > of the Signed_<n> and Unsigned_<n> families of types (RM B.2)
>          ^^^^^^^^^^
>
> A surprising mistake :-)

You got that right... it sure suprised me!

Sloppy, sloppy.  Yesterday was NOT a good news-posting day for me...

:-) :-)

> It is of course the case that these
> functions do NOT apply to signed numbers (where there meaning
> would be obscure or at least implementation defined, because
> of the sign bit issue).
>
> One interesting bit of non-portability comes from whether it
> is possible to define these operators for *USER* defined
> unsigned types. The RM does not require this capability, but
> in GNAT you can define your own intrinsic shift functions for
> your own modular types, and GNAT will permit this. I do not
> know if other Ada 95 compilers provide this capability.

That is interesting...

-- mark


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2001-01-16 17:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-14 14:47 bitstreams Daniel Nilsson
2001-01-14 15:10 ` bitstreams Larry Kilgallen
2001-01-14 16:15 ` bitstreams tmoran
2001-01-14 19:46 ` bitstreams srini
2001-01-15 19:56   ` bitstreams mark_lundquist
2001-01-15 21:54     ` bitstreams Tucker Taft
2001-01-16  0:41       ` bitstreams Robert Dewar
2001-01-16  0:39     ` bitstreams Robert Dewar
2001-01-16 23:26       ` bitstreams Rajagopalan Srinivasan
2001-01-15 19:21 ` bitstreams mark_lundquist
2001-01-15 20:43   ` bitstreams Pat Rogers
2001-01-15 21:15     ` bitstreams mark_lundquist
2001-01-16  0:59   ` bitstreams Robert Dewar
2001-01-16 17:36     ` mark_lundquist [this message]
2001-01-16 20:08       ` bitstreams Pat Rogers
2001-01-17  2:15         ` bitstreams 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