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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ad988eb0a9545c86 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-18 09:56:31 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!teaser.fr!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Problem trying to implement generics. Date: Wed, 18 Apr 2001 12:33:07 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9bkfk4$6a2$1@nh.pace.co.uk> References: <9b6jtu$4is$2@taliesin.netcom.net.uk> <9b6m27$68e$1@taliesin.netcom.net.uk> <0JBB6.10484$FD1.1197250@news6-win.server.ntlworld.com> <9b7tce$laf$2@taliesin.netcom.net.uk> <3ADC4320.7ACA3DEC@averstar.com> <9bhoup$h9k$1@taliesin.netcom.net.uk> <3ADC7A79.8E853905@mindspring.com> <9bi4g4$97m$1@nh.pace.co.uk> <3addad93.0@silver.truman.edu> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 987611588 6466 136.170.200.133 (18 Apr 2001 16:33:08 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 18 Apr 2001 16:33:08 GMT 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 Xref: supernews.google.com comp.lang.ada:6978 Date: 2001-04-18T16:33:08+00:00 List-Id: It seems to be a thing C programmers are more hung up on than is really necessary. Certainly some domains use bit shifts more than others (writing low level code for device drivers, etc., vs accounting software.) Even so, I find there are really rather few times I've *needed* to do bit shifting - usually there are other ways of accomplishing the same thing. I'm glad Ada lets you do it, but I don't think it needs a more convenient operator. (One *could* redefine ">" and "<" to yield bit shift results...) Besides, the << and >> symbols are used for labels to which one does a goto and there may be some syntactic reason it would be tough to define them as operators. (I'd really hate to have to retrofit all the thousands of lines of Ada code I have that use labels in order to accommodate a new bit-shift operator. :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Chad R. Meiners" wrote in message news:3addad93.0@silver.truman.edu... > Are bit shifts really a commonly occurring operation in Ada? I can only > think of think of a handful of time I have needed to use them in my five > years of using Ada. >