From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: Ada & MacOS
Date: Mon, 06 Feb 2006 18:48:44 GMT
Date: 2006-02-06T18:48:44+00:00 [thread overview]
Message-ID: <gSMFf.5573$5E3.3893@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <ds70ss$onv$1@sunnews.cern.ch>
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
next prev parent reply other threads:[~2006-02-06 18:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 10:53 Ada & MacOS sg
2006-02-02 14:48 ` Alex R. Mosteo
2006-02-02 17:13 ` Martin Krischik
2006-02-02 19:37 ` sg
2006-02-02 21:30 ` Björn Persson
2006-02-02 23:17 ` sg
2006-02-03 7:32 ` Jean-Pierre Rosen
2006-02-03 19:38 ` Jeffrey R. Carter
2006-02-06 10:15 ` Jean-Pierre Rosen
2006-02-03 16:27 ` Martin Krischik
2006-02-03 19:43 ` Jeffrey R. Carter
2006-02-04 7:04 ` Martin Krischik
2006-02-04 14:32 ` Georg Bauhaus
2006-02-06 8:20 ` Maciej Sobczak
2006-02-06 18:48 ` Jeffrey R. Carter [this message]
2006-02-06 20:44 ` Hyman Rosen
2006-02-07 9:10 ` Maciej Sobczak
2006-02-07 16:16 ` Martin Krischik
2006-02-08 4:51 ` Jeffrey R. Carter
2006-02-08 7:35 ` Alex R. Mosteo
2006-02-09 14:52 ` Maciej Sobczak
2006-02-06 19:25 ` Martin Krischik
2006-02-06 20:34 ` Hyman Rosen
2006-02-07 16:13 ` Martin Krischik
2006-02-03 23:55 ` Simon Williams
2006-02-04 16:22 ` Adrian Hoe
2006-02-04 16:25 ` Adrian Hoe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox