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!news2.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada & MacOS References: <1776691.hMkAr8ZQHy@linux1.krischik.com> <6SuEf.155126$dP1.513381@newsc.telia.net> <1289921.BRApYLEfLn@linux1.krischik.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 06 Feb 2006 18:48:44 GMT NNTP-Posting-Host: 67.150.67.197 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1139251724 67.150.67.197 (Mon, 06 Feb 2006 10:48:44 PST) NNTP-Posting-Date: Mon, 06 Feb 2006 10:48:44 PST Xref: g2news1.google.com comp.lang.ada:2798 Date: 2006-02-06T18:48:44+00:00 List-Id: Maciej Sobczak wrote: > 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? Using which compilers and what language features? Very few "C++" compilers implement the language defined by the ISO standard. Can you use all the features of the standard language and count on it compiling with all "C++" compilers? With Ada, the entire standard language is compiled by every compiler; a compiler that didn't implement, say, generics, would be laughed out of existence. Yet "C++" users regularly use compilers that don't implement templates, exceptions, or namespaces. Sure, Ada compilers are large programs and have errors. They're less common than back in the good old days when it seems I broke a compiler every time I turned around. Ada compilers can implement compiler-dependent pragmas and attributes, and can supply compiler-dependent packages. Many also supply platform-dependent packages. If you use those, you're not writing portable code. If you stick to the standard language, though, portability is pretty much guaranteed. GNAT is an interesting beast. Versions exist for a number of platforms, and it comes with a large library (GNAT.*) that is compiler dependent, and much of it (such as GNAT.OS_Lib) seems platform dependent, too. These work fine on all platforms that GNAT compiles to. So you have compiler-dependent but platform-independent packages with GNAT. -- Jeff Carter "Ada has made you lazy and careless. You can write programs in C that are just as safe by the simple application of super-human diligence." E. Robert Tisdale 72