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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8309f2bc055237c4 X-Google-Attributes: gid103376,public From: gdemont@my-deja.com Subject: Re: Bit manipulation Date: 2000/11/09 Message-ID: <8ue26u$i3s$1@nnrp1.deja.com>#1/1 X-Deja-AN: 691569930 References: <8u8v6n$b7o$1@nnrp1.deja.com> <2WTH$pdrCfOd@eisner.decus.org> <8ub6kt$6nd$1@nnrp1.deja.com> <8ubeq8$cgm$1@nnrp1.deja.com> <8ubhlh$ejv$1@nnrp1.deja.com> <8uda93$5o$1@nnrp1.deja.com> X-Http-Proxy: 1.0 sitelnet.unine.ch:8080 (Squid/2.1.PATCH2), 1.0 x60.deja.com:80 (Squid/1.1.22) for client 130.125.13.23, 130.125.90.100 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 09 11:35:58 2000 GMT X-MyDeja-Info: XMYDJUIDgdemont Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.74 (Macintosh; U; PPC) Date: 2000-11-09T00:00:00+00:00 List-Id: > > programming; therefore hiding the availability of modular > types > > _is_ a disservice. > > I simply disagree, I am talking about lots of code that I > see written by professional programmers who do not understand > how to do things in Ada. One of the functions of CLA should > be to try to show people how things are done in Ada. The best way would be to write that there are such and such ways, and, as you wrote, ask for details about the problem to implement. Of course, also say that such method is safer than such one which is maybe faster to program. But concealing a feature for moral reasons is a big disservice to the language, doubly: 1) it make believe (here) that C is necessary for low-level elementary operations; 2) the interfacing is always fragile and make ask: "finally, why did we code the rest in Ada ?". > The idea that being an adult guarantees that people know > what they are doing, and that they know the right semantic > level to frame their questions at, is misguided. I did not mean that if they are adults, they are good programmers. Simply, a mediocre programming will be at least much more reliable (if not safe) in Ada. In various Ada forums/lists, I see sometimes a part of code coming even from "safety-critical" area, where the guy believes that a feature (typically modular types) doesn't exist in Ada, then uses unchecked_conversion on pointers and/or a complicated interface with a "@a#$s++{--x;{}}" - like piece of C. In addition, the code doesn't work and the guy concludes that Ada is really useless (instead of seeing that _he_ is hopeless ;-). G. Sent via Deja.com http://www.deja.com/ Before you buy.