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: 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 Path: g2news2.google.com!postnews.google.com!q3g2000yqi.googlegroups.com!not-for-mail From: Nick Keighley Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: Why use C++? Date: Tue, 16 Aug 2011 01:18:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> NNTP-Posting-Host: 213.123.60.87 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1313482711 18833 127.0.0.1 (16 Aug 2011 08:18:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 16 Aug 2011 08:18:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q3g2000yqi.googlegroups.com; posting-host=213.123.60.87; posting-account=sLi3rQoAAAB6wjiwo9v8I7Xw7Kf7_67C User-Agent: G2/1.0 X-HTTP-Via: 1.1 KHHQ-XS-XXISA01 X-Google-Web-Client: true X-Google-Header-Order: VCRUHALNK X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.c++:92794 comp.lang.ada:21613 Date: 2011-08-16T01:18:31-07:00 List-Id: On Aug 13, 10:15=A0am, "Dmitry A. Kazakov" wrote: > On Sat, 13 Aug 2011 02:53:32 -0500, Jed wrote: > > "Dmitry A. Kazakov" wrote in message > >news:1gu6ni1yb54k3$.4nbvfqqndl8m$.dlg@40tude.net... > >> On Fri, 12 Aug 2011 14:06:55 -0500, Jed wrote: > >>> "Dmitry A. Kazakov" wrote in message > >>>news:fwnlcp4mgj03$.1tjeqjtos00o8$.dlg@40tude.net... > >>>> I want the type semantics specified. C/C++ int is neither lower leve= l nor > >>>> closer to the machine it is just ill-defined. The concern is this, n= ot its > >>>> relation to the machine, of which I (as a programmer) just do not > >>>> care. > > >>> What more definition do you want? > > >> More than what? I see nothing. > > > The semantics of C++ types are specified. > > By the word "int"? an integer having a range at leaast large enough to hold the values -32767..32767 (I may be off a bit on the values but it translates to 16 bits or larger) > 2. I don't care about the platform, I care about what the program is > supposed to do. The type's properties shall be defined by the application > domain. whilst this degree of abstraction is often good the ability to fiddle with representaion is also sometimes useful. And if we want our programs to terminate before the sun goes cold knowing about representaion is sometimes useful. I accept many langaues don't reveal represetnation details to the degree that C (and C++) does.