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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 109fba,cd8ed9115942852f X-Google-NewGroupId: yes X-Google-Thread: 103376,b92b95c9b5585075 X-Google-NewGroupId: yes X-Google-Attributes: gid4f1905883f,gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 13 Aug 2011 13:46:18 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: Why use C++? References: <1e292299-2cbe-4443-86f3-b19b8af50fff@c29g2000yqd.googlegroups.com> <1fd0cc9b-859d-428e-b68a-11e34de84225@gz10g2000vbb.googlegroups.com> <9ag33sFmuaU1@mid.individual.net> <1d8wyhvpcmpkd.ggiui9vebmtl.dlg@40tude.net> <150vz10ihvb5a.1lysmewa1muz4$.dlg@40tude.net> <1q4c610mmuxn7$.1k6s78wa0r8fj.dlg@40tude.net> <1vn800hbyx8k4$.1lsveclj56197$.dlg@40tude.net> <1gu6ni1yb54k3$.4nbvfqqndl8m$.dlg@40tude.net> <9amuf2FdetU3@mid.individual.net> <9an4doFdeuU2@mid.individual.net> In-Reply-To: <9an4doFdeuU2@mid.individual.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4e46640a$0$6550$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 13 Aug 2011 13:46:18 CEST NNTP-Posting-Host: 2c24272b.newsspool4.arcor-online.net X-Trace: DXC=WO_9cTSgkKUaoembcbF;DQ4IUK:D0YPCY\c7>ejVX0[gA\o5>0[\` On 13.08.11 13:10, Ian Collins wrote: > On 08/13/11 09:52 PM, Dmitry A. Kazakov wrote: >> On Sat, 13 Aug 2011 21:29:05 +1200, Ian Collins wrote: >> >>> It's pretty rare for the application domain to be concerned about >>> the semantics of an integer beyond those specified by the language. >> >> If buffer overflows and code quality is not a concern, then yes. > > Most variables have limited scope and a well defined range. So if I use an int in a for loop over a small set of data, I'm not writing poor quality code. Even if language design is not to be judged what you or Dmitry, or I, if I may, write in any given specific circumstance, it is still true that every other week an overflow drills a CVE into the internet. > Yes I agree being able to specify a type without reference to an underlying fundamental type is a powerful feature C and C++ lack. Could you say why? I speculate that Jed would like to hear, too.