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: 103376,ab1d177a5a26577d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Thu, 17 Feb 2011 00:07:50 +0100 Organization: Adalog Message-ID: References: <104cfd9f-dbf5-4f05-9c4a-a2319dd371a9@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 16 Feb 2011 23:07:44 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="27028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TVSe0o3RuZWVjhCQVCud8" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: <104cfd9f-dbf5-4f05-9c4a-a2319dd371a9@glegroupsg2000goo.googlegroups.com> Cancel-Lock: sha1:XozOq8ty6mvHkwYrmKputuJZfhI= Xref: g2news1.google.com comp.lang.ada:17314 Date: 2011-02-17T00:07:50+01:00 List-Id: Le 16/02/2011 22:12, Hyman Rosen a �crit : > On Wednesday, February 16, 2011 3:49:25 PM UTC-5, Nasser M. Abbasi wrote: >> "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. > The huge difference is that you are not required to use #include in C or C++. If you want to declare your own prototypes with totally different types, the compiler will happily let you do it. "but everybody does use #include!". Sure. But when it comes to safety critical software, "everybody does it" is not enough. You need guarantees. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00