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,e5eb8ca5dcea2827 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada OO Mechanism Date: 1999/05/24 Message-ID: <7icgkg$k4q$1@nnrp1.deja.com>#1/1 X-Deja-AN: 481637880 References: <7i05aq$rgl$1@news.orbitworld.net> <7i17gj$1u1k@news2.newsguy.com> X-Http-Proxy: 1.0 x23.deja.com:80 (Squid/1.1.22) for client 166.72.81.180 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Mon May 24 21:34:08 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-24T00:00:00+00:00 List-Id: In article , Hyman Rosen wrote: > Could you give an example of this? I ask, because recently Richard > D. Riehle made a similar type of claim, and then declined to post an > example. I believe that many posters to this group are very proficient > in Ada but not as proficient in C++, so they may be mistaken about > what is difficult to do in C++. Posting an example allows proficient > C++ users to examine the apparently difficult code and offer > alternatives. Well obviously the case of extending an algebra that implements symmetrical binary operators is a case more easily handled in Ada than in C, I assume a specific example is not needed here? But presumably you are looking for different kinds of things? > (Note that I am not looking for arbitrary examples of where Ada is > better than C++. I know that Ada is better, for example, in defining > data storage layout that conforms to external specifications, while > C++ is better in providing automatic generic instantiation.) Actually these two examples are not at all comparable. The ability to declare data storage layout is a fundamental functionality feature. Automatic generic instantiation is a mechanism, which one may or may not like. You can't really say that C++ is better in this department if your viewpoint is that automatic generic instantiation is a risky feature! So it is better to find examples of fundamental functionality rather than mechanisms. Of course the discussion about OO features is entirely about mechanisms! --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---