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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: Alexander Van Hecke Subject: Re: bitwise comparators Date: 2000/01/17 Message-ID: <38836CF2.AB738B8B@hotmail.com>#1/1 X-Deja-AN: 573877844 Cache-Post-Path: marvin!root@tvd-10-67-20-018.tvd.kotnet.kuleuven.ac.be Content-Transfer-Encoding: 7bit References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <85vmn2$ki1$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@belnet.be X-Trace: naxos.belnet.be 948137298 24525 134.58.127.3 (17 Jan 2000 19:28:18 GMT) Organization: KULeuvenNet X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Mime-Version: 1.0 NNTP-Posting-Date: 17 Jan 2000 19:28:18 GMT Newsgroups: comp.lang.ada Date: 2000-01-17T19:28:18+00:00 List-Id: This seems like an attack on C/C++! I'm sorry, but I have to react on this > Ada has > packages, C was ment to be used modular and for reuse : put your code in separate .c and .h files. > private types, C has that! > exceptions, you can program exceptions in C. I never said that C has all these things, but you can program them, and there are masses of libraries available that have just what you need. > generics, use structs and callback functions and you have perfect generic types! > tasks, threads true enumeration types, true arrays, enumeration types in Ada are no different than they are in C. Just because you have some fancy attributes (SUCC, PRED) doesn't mean that they are different or more powerful! You can write functions that do exactly the same, even more, these functions have already been written numerous times and are available. With true arrays, do you mean out of bound checking, etc? This can be done with _proper_ programming in C! none of which are found in C. ^^^^^^^^^^^^^^^^^^^^^^^ ahum. > C just has integers, floating-point numbers, pointers, and functions, so > of course Ada takes > longer to learn. > > Ada makes creating and using abstractions easier than C (packages for > encapsulation and information hiding; private types for information > hiding). Would you agree that C++ is just as good in that as Ada. Don't forget that ANY C++ code can be easily translated into C? For that matter, everything else you mentioned (namespace control, (easy) generics, exceptions and exception handlers, typing) is easily achieved in C++ (and thus C). As I have said already a few times, and as I said in my original post : I THINK IT'S A NICE FEATURE OF ADA THAT YOU CAN WRITE READABLE CODE, BUT THAT DOES NOT NECESSARILY MEAN THAT THE LANGUAGE IS MORE POWERFUL! It might be easier to use once you've mastered it, but it also is harder to learn. excuse me for being so impolite, but I had to get this off my chest. alex