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!news3.google.com!news.glorb.com!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: Mon, 06 Feb 2006 09:20:44 +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 1139214043 25343 (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/20050922 Red Hat/1.7.12-1.1.3.2.SL3 X-Accept-Language: en-us, en In-Reply-To: <1289921.BRApYLEfLn@linux1.krischik.com> Xref: g2news1.google.com comp.lang.ada:2791 Date: 2006-02-06T09:20:44+01:00 List-Id: Martin Krischik wrote: >>OK but how with the compatibility of code compiled on Gnat that is part >>of GCC between MacOS, Windows and Linux ? > > It's Ada not C or C++. Ada compilers obey and not ignore the ISO standart. > Ada compilers come without a 10 page list of ISO standart features not yet > and probably never to be implemented. Ada does not only have an ISO > standart - it also has an ISO standart test suite. BTW: The only > programming language with an official standart test suite. > > Ada is most likely the most compatible programming language in existence > that compiles into binary code. Of course, not counting "features" of different compilers, right? If you say "Ada compiler", then is GNAT a good example? Doesn't it have any "features" that can affect compilability/behaviour of some code? The words "compiler bug" appear in comp.lang.ada archive, don't they? In the same way, C++ guys can say that C++ is an incredibly portable language, with compilers existing for almost every piece of silicon in existence. Well, except of some compiler "features" that spoil the picture, of course. > That's for theory, in pratice: I have used Ada with OS/2, MS-Windows, Linux, > OpenVMS and the tendency is: if it runs in one OS it will run on any other > as well. Well: unless you use OS specific features or grab deep down into > the System packages. Same for C++. One of the users of my recent code (non-trivial, I would say) compiled it on MacOS by typing "make", even though I've never touched Mac. So? Granted, the fact that Ada has a standard test suite is a Very Good Thing, really. The lack of such test suite for C++ allowed various vendors to put big "C++" letters on whatever shi^H^H^H product they wanted to sell over the last decade or so and that's the cause for the C++ landscape to look so messy today. But don't present it to be entirely hopeless, because it isn't. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/