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=0.7 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab1d177a5a26577d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Hyman Rosen Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Wed, 16 Feb 2011 13:12:00 -0800 (PST) Organization: http://groups.google.com Message-ID: <104cfd9f-dbf5-4f05-9c4a-a2319dd371a9@glegroupsg2000goo.googlegroups.com> Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 204.253.252.20 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297890720 30312 127.0.0.1 (16 Feb 2011 21:12:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Feb 2011 21:12:00 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=204.253.252.20; posting-account=NhXkHQoAAADUfNLRQrjReWdGEn5uz9E_ User-Agent: G2/1.0 Xref: g2news2.google.com comp.lang.ada:18284 Date: 2011-02-16T13:12:00-08:00 List-Id: On Wednesday, February 16, 2011 3:49:25 PM UTC-5, Nasser M. Abbasi wrote: > The following below is probably one of the major problems > with C/C++ environment? >=20 > http://en.wikibooks.org/wiki/Ada_Programming/Packages >=20 > "Ada uses separate compilation (like Modula-2, Java and C#), > and not independent compilation (as C/C++ does), in which the > various parts are compiled with no knowledge of the other > compilation units with which they will be combined." It's not even clear what this means, let alone why it's a problem. It sounds like a complaint that C++ requires source inclusion (directly or = via preprocessor #include directives) of type and object declarations into = a compilation unit, while other languages have syntax for requesting a type= set (class, package, etc.) whose definition is then sought out by the comp= iler in an implementation-dependent way. Personally, I don't find the long = strings of 'import ...;' or 'with ...; use ...;' statements any more appeal= ing than '#include "header.h"', but I suppose it's "purer".