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 12:10:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.mathworks.com!cyclone.swbell.net!nnrp3.sbc.net.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <93se2v$nen$1@eol.dd.chalmers.se> <93vik8$u08$1@nnrp1.deja.com> <9406cs$g4i$1@nnrp1.deja.com> <9420qv$2d$1@nnrp1.deja.com> Subject: Re: bitstreams X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 16 Jan 2001 14:08:42 -0600 NNTP-Posting-Host: 208.191.184.67 X-Complaints-To: abuse@swbell.net X-Trace: nnrp3.sbc.net 979675727 208.191.184.67 (Tue, 16 Jan 2001 14:08:47 CST) NNTP-Posting-Date: Tue, 16 Jan 2001 14:08:47 CST Organization: SBC Internet Services Xref: supernews.google.com comp.lang.ada:4065 Date: 2001-01-16T14:08:42-06:00 List-Id: wrote in message news:9420qv$2d$1@nnrp1.deja.com... > 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... When I want one of my own, I always derive from those in Interfaces to inherit the primitives.