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: a07f3367d7,27b8da03f2246757 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: conditionnal compilation References: <4259b442-6772-4527-989a-b20e1641b8d0@g20g2000vba.googlegroups.com> In-Reply-To: <4259b442-6772-4527-989a-b20e1641b8d0@g20g2000vba.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1242251494 173.16.158.68 (Wed, 13 May 2009 21:51:34 GMT) NNTP-Posting-Date: Wed, 13 May 2009 21:51:34 GMT Organization: AT&T ASP.att.net Date: Wed, 13 May 2009 21:51:34 GMT Xref: g2news2.google.com comp.lang.ada:5829 Date: 2009-05-13T21:51:34+00:00 List-Id: guerrier.cachalot@gmail.com wrote: > Now that I know Ada has not built'in support for conditional > compilation such a full-featured preprocessor, I would like know what > should I use instead ? Conditional compilation and preprocessing was deliberately left out of Ada, because it leads to unreadable code. But if you want to create unreadable code, you can always use your favorite preprocessor. Conditional compilation is usually used to deal with target variations. The Ada approach to this is to hide the target-specific things in a package body, and provide different bodies for different targets. -- Jeff Carter "We'll make Rock Ridge think it's a chicken that got caught in a tractor's nuts!" Blazing Saddles 87