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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 29 Mar 2007 23:06:43 -0500 From: "Steve" Newsgroups: comp.lang.ada References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> Subject: Re: why learn C? Date: Thu, 29 Mar 2007 21:09:12 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.20.111.245 X-Trace: sv3-Xwuz/8I89rD0jfmnqz5WHu8Xr5O3jN7KCZ+jgD/Rn0izuhklHhf5WzZK8tEwP1oYltpjmzEz4LnKvtT!VPLgF/N7D9msBLyb9Df1bELtkZbly0hYPOyWIDkXH01QdaTpr7ixY+zxnS8h+BElDWyS2UwOx8lo!NDR8kt2Kxt08AZQ5j22CETaz7+0AHQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Xref: g2news1.google.com comp.lang.ada:14670 Date: 2007-03-29T21:09:12-07:00 List-Id: "kevin cline" wrote in message news:1175215906.645110.217810@e65g2000hsc.googlegroups.com... > On Mar 20, 12:37 pm, wrote: >> "Marc Boyer" wrote in message > >> >> It has always seemed rather odd to me that people who are as intelligent >> as programmers, rarely question the silliness of using tools such as C >> and C++ for serious work. >> They simply take for granted that the kind >> of errors that are so common in those languages are somehow akin to >> the laws of nature. > > No, what actually happened is that expert C++ developers learned to > use C++ in such a way that those errors can not happen. While it is > possible to write unsafe code in C++, it is also possible to adopt > coding guidelines that makes it easy to find and eliminate unsafe > code, and for most applications, that's quite good enough. One reason > that experts choose C++ over Ada for performance-critical applications > because C++ templates allow compile-time type safety in high-level > code in a way that Ada generics do not. > Please give an example of one case where a C++ template gives more compile time safety than an Ada generic. I have found just the opposite to be true. Regards, Steve (The Duck)