comp.lang.ada
 help / color / mirror / Atom feed
From: Lionel.DRAGHI@fr.thalesgroup.com
To: comp.lang.ada@ada-france.org
Subject: RE: Preprocessor functionality equivalent ideas needed
Date: Thu, 11 Dec 2003 13:52:39 +0100
Date: 2003-12-11T13:52:39+01:00	[thread overview]
Message-ID: <mailman.83.1071147216.31149.comp.lang.ada@ada-france.org> (raw)



| -----Message d'origine-----
| De: Steve [mailto:nospam_steved94@comcast.net]
..
| Support for multiple configurations is not built into the 
| language, but many
| development environments do.


If just considering build time configuration, my experience is that you
should consider in this order:
1 - programmming possibilities. As statted by Georg Bauhaus, there are many
way to manage multiple configurations at langage level, with idioms or
design patterns. This is the best way because the compiler is the the more
reliable way to build and check a configuration.

2 - sources selection : you need to select the right sources for each
configuration. Note that this is pretty unavoidable even when using idioms
and patterns.

3 - sources modification : macro-generation, preprocessing, etc. It's some
time hard to avoid, but sources will be less readable, build is less
straightforward, and most of the tools will no more understand the sources,
as those are no more Ada. 
For example, if you use GNAT preprocessor, you will depend on GPS to read
the sources, or fall back on whatever simple text editor. If you use your
own preprocessor, it's even worse.

So, I recommand you to consider programming way before development
environments.

-- 
Lionel Draghi



             reply	other threads:[~2003-12-11 12:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11 12:52 Lionel.DRAGHI [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 15:51 Preprocessor functionality equivalent ideas needed Lionel.DRAGHI
2003-12-10 20:04 Greg Milford
2003-12-10 21:41 ` Ludovic Brenta
2003-12-10 22:29 ` Georg Bauhaus
2003-12-12  5:52   ` Simon Wright
2003-12-11  1:07 ` Jeffrey Carter
2003-12-11 13:34   ` Marin David Condic
2003-12-11 17:49     ` Jeffrey Carter
2003-12-11  5:39 ` Steve
2003-12-11 16:59 ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox