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,435e65f4acf8bd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-16 09:52:07 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: mark_lundquist@my-deja.com Newsgroups: comp.lang.ada Subject: Re: bitstreams Date: Tue, 16 Jan 2001 17:36:32 GMT Organization: Deja.com Message-ID: <9420qv$2d$1@nnrp1.deja.com> References: <93se2v$nen$1@eol.dd.chalmers.se> <93vik8$u08$1@nnrp1.deja.com> <9406cs$g4i$1@nnrp1.deja.com> NNTP-Posting-Host: 130.213.202.184 X-Article-Creation-Date: Tue Jan 16 17:36:32 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) X-Http-Proxy: 1.1 x71.deja.com:80 (Squid/1.1.22) for client 130.213.202.184 X-MyDeja-Info: XMYDJUIDmark_lundquist Xref: supernews.google.com comp.lang.ada:4060 Date: 2001-01-16T17:36:32+00:00 List-Id: In article <9406cs$g4i$1@nnrp1.deja.com>, Robert Dewar 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_ and Unsigned_ 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/