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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d3037f71d9d26da1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 04:55:59 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!grey.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Lionel.DRAGHI@fr.thalesgroup.com Newsgroups: comp.lang.ada Subject: RE: Preprocessor functionality equivalent ideas needed Date: Thu, 11 Dec 2003 13:52:39 +0100 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: melchior.cuivre.fr.eu.org 1071147216 26565 80.67.180.195 (11 Dec 2003 12:53:36 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 11 Dec 2003 12:53:36 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: X-Mailer: Internet Mail Service (5.5.2653.19) X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3356 Date: 2003-12-11T13:52:39+01:00 | -----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