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: Gautier.DeMontmollin@maths.unine.ch Subject: Re: Conditional Code in Ada 95? Date: 1998/08/22 Message-ID: <2$$CdIjQwTPX@nedcu4>#1/1 X-Deja-AN: 383628787 References: <35DDFB42.1311@boeing.com> Organization: University of Neuchatel, Switzerland Newsgroups: comp.lang.ada Date: 1998-08-22T00:00:00+00:00 List-Id: Rex Reges writes: > 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. Fortunately... The clean (and compatible) way remains hardware-specific units when needed and, within an unit, constants keys like that: with text_io; use text_io; procedure condcomp is debug: boolean:= false; verbose: boolean:= true; begin if debug then put_line("this is for debug"); end if; if verbose then put_line("verbosity"); end if; end; Question: which compiler/optimizer will skip the unused 'put_line("this is for debug");' ?... Gautier