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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec2b9b815bd3b0bd X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: Conditional Code in Ada 95? Date: 1998/08/27 Message-ID: <35E58D2E.FD34A7DB@hso.link.com>#1/1 X-Deja-AN: 385325541 Content-Transfer-Encoding: 7bit References: <35DDFB42.1311@boeing.com> <35DE5320.E3128663@rational.please_no_unsolicited_mail.com> <35E196F8.6163D721@lmco.com> Content-Type: text/plain; charset=us-ascii Organization: Raytheon Training Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-27T00:00:00+00:00 List-Id: Mark A Biggar wrote: > > Gene Ouye wrote: > > Rex Reges wrote: > > > I just saw some Ada95 code riddled with conditional > > > compilation statements. I wasn't aware that this > > > was part of Ada95 and I can't find it in the ARM. > > > Is this some feature that compiler vendors have > > > all decided to support? > > Rational Apex includes a preprocessor that can be used for conditional > > compilation, but this is certainly NOT something that the ARM requires, > > and Ada compiler vendors are NOT required to provide it. As far as I > > know, the compiler vendors have not decided to support any particular > > conditional compilation syntax much less conditional compilation in > > general. > > It should also be noted that most ANSI standard C compiler preprocessors > will not work with Ada code. The 2 languages have just enough differences > in the way they break text up into tokens that a ANSI C preprocessor (whose > operation is defined in terms of token strings not characters) gets > very confused, especially about ' attributes. Older pre-ANSI text based > C preporcessors may work depending on how they habdle quoting. > > -- > Mark Biggar > mark.a.biggar@lmco.com I'm afraid the original message has expired in my news server, but I seem to remember the problem involved moving from VADS to GNAT. It should be noted that the VADS a.app works with or without a VADS library so the original poster could continue using a.app as before and still use GNAT for the actual compilation. -- Samuel T. Harris, Principal Engineer Raytheon Training Incorporated "If you can make it, We can fake it!"