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,FREEMAIL_FROM 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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Ada & MacOS Date: Wed, 08 Feb 2006 08:35:29 +0100 Message-ID: <43E99F41.6040506@mailinator.com> References: <1776691.hMkAr8ZQHy@linux1.krischik.com> <6SuEf.155126$dP1.513381@newsc.telia.net> <1289921.BRApYLEfLn@linux1.krischik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net n5qsTfNuHVYLNFAk10aDcgxhp2DcBuG9wglVazMXWEkPvRFjk= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:2812 Date: 2006-02-08T08:35:29+01:00 List-Id: Jeffrey R. Carter wrote: > Maciej Sobczak wrote: >> I'm writing this from Mozilla, written in C++, running happily on most >> desktop platforms you can find today. Have Mozilla been written in >> Ada, it wouldn't be much more portable. > > > 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, including no templates (a few exceptions), > no exceptions, no namespaces. That's for contributing to Mozilla today, > because so many of the compilers used to build Mozilla for various > platforms today don't support these basic features of the language. An interesting quote from the link is "But this is the reality of portable code" (which obviously must be understood as the reality of portable "C++"). One of the things that triggered my interest in Ada in my college days was that I had to work in a HP-UX at the labs, but could also work in my home linux (we also had meridian Ada for ms-dos in another lab). And never had an issue with portability. A different beast was trying to use the HP-UX CC and linux gcc at the same time. I remember special fun with templates, which have the extra amusing property of triggering dozens of errors but only at link time. (Really, how I hate link time errors.)