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,59d666bca086a225 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!ezmp3.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada & MacOS Date: Thu, 09 Feb 2006 15:52:11 +0100 Organization: CERN - European Laboratory for Particle Physics Message-ID: References: <1776691.hMkAr8ZQHy@linux1.krischik.com> <6SuEf.155126$dP1.513381@newsc.telia.net> <1289921.BRApYLEfLn@linux1.krischik.com> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sunnews.cern.ch 1139496731 28698 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060203 Red Hat/1.7.12-1.1.3.4 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:2820 Date: 2006-02-09T15:52:11+01:00 List-Id: Jeffrey R. Carter wrote: > Interesting that you mention Mozilla. Take a look at their rules for > writing C++ for the project: > > http://www.mozilla.org/hacking/portable-cpp.html > > Lots of things you can't use That's interesting, especially taking into account that all of the platforms for which they provide downloadable binaries can be targeted with just two or three recent versions of GCC. Plus VC++ for Windows. All of these compilers support the forbidden features. I cannot comment on these rules, because I don't really know when they were last updated and what is the actual list of compilers that they use. It might be also good to point out one thing - different projects (or even application areas) impose different guidelines and restrictions on the set of allowed language features, even without taking the portability under consideration, sometimes just to retain some given style or control over the design - when the language is powerful enough, it might turn out to be too powerful. Such guidelines and restrictions are in use *also* with Ada - Ravenscar is a good example - but nobody will claim here that Ada is a bad language. In general, the fact that some project (company, application area, etc.) uses any given set of restrictions does not indicate that the language is broken. >> BTW - why do you write "C++" in question marks, and Ada without them? > > C++ is an ISO standard; anything that isn't the language defined in that > standard isn't C++. Lots of people use the name "C++" to refer to things > that aren't C++; I use "C++" to refer to such things. OK, I see. I understand then, that the code which is fully standard-compliant can be called C++ even if it's compiled with the compiler that does not support 100% of the standard? I call my code C++ then. > By the way, '"' is a quotation mark; '?' is a question mark. Sure. Mindless typo. :) -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/