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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7d533acec91ae16 X-Google-Attributes: gid103376,public From: Fraser Wilson Subject: Re: Question for the folks who designed Ada95 Date: 1999/04/29 Message-ID: <925401850.901.27@news.remarQ.com>#1/1 X-Deja-AN: 472341380 References: <7g2qu4$ca4$1@usenet.rational.com> <7g6urm$v5r$1@nnrp1.dejanews.com> <3727EA10.34D0AB3B@rocketmail.com> <7g9r4i$gn2$1@nnrp1.dejanews.com> X-Complaints-To: newsabuse@remarQ.com X-Trace: 925401850.901.27 KZBGBQC4S164892E1C usenet1.supernews.com Organization: Vegetarian Ada Programmers NNTP-Posting-Date: Thu, 29 Apr 1999 16:04:10 GMT Newsgroups: comp.lang.ada Originator: fraser@titanic Date: 1999-04-29T00:00:00+00:00 List-Id: paene lacrimavi postquam Robert Dewar scripsit: >In article <3727EA10.34D0AB3B@rocketmail.com>, > Corey Ashford wrote: >> Why no 'shift_left function? >That seems to me to be unnecesary complexity. It would >mean having to define the shifts for all possible modular >types, which is really overkill. I'm torn. On the one hand, restricting modular types to powers of 2 would have been an arbitrary-looking quite un-Ada-like restriction. On the other, modular types which aren't a power of 2 cause an astonishingly low gain to pain ratio. Were it not for the non-power-of-2 modular types, I can't see that Shift_Left and Shift_Right attributes would be difficult to justify. Fraser. (trying and failing to think of a good syntax for a modular type the expresses only the power of 2 that forms the modulus ... hmmmm)