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,355f90547d1b4b5 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: PRECOMPILATION Date: 1999/02/09 Message-ID: <36c0b3ad.367441@news.pacbell.net>#1/1 X-Deja-AN: 442576744 References: <918556681.260459@dedale.pandemonium.fr> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 918598893 206.170.2.246 (Tue, 09 Feb 1999 14:21:33 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Tue, 09 Feb 1999 14:21:33 PDT Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: >Are there precompilation instructions in Ada95, >like in C (#ifdef,...etc) ? In other words, how can >I set compilation conditions ? Most compilers are smart enough to delete code in a situation like: Sometimes : constant Boolean := False; .... if Sometimes then stuff; end if; ie, if the optimizer knows "stuff" can never be executed, it will simply drop it and the if-test. Having worked on well known shrinkwrap software coded with the C preprocessor, I would STRONGLY recommend against going that route. Yes, it's just a tool, and judiciously used can be useful. So's a hydrogen bomb.