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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Tue, 28 Jul 2015 15:06:28 +0200 Organization: A noiseless patient Spider Message-ID: References: <1ckwx9hern944$.1w0k6fbvlqo62$.dlg@40tude.net> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 28 Jul 2015 13:04:54 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="10379"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pmXjpNFnyvCopvGN6U2QvVtXaW1z89/E=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: Cancel-Lock: sha1:hmWBd95qWJ0TfIZRAPiIdF05IAs= Xref: news.eternal-september.org comp.lang.ada:27084 Date: 2015-07-28T15:06:28+02:00 List-Id: On 28.07.15 14:06, EGarrulo wrote: > On Tuesday, July 28, 2015 at 1:51:45 PM UTC+2, Dmitry A. Kazakov wrote: >> Because *What* must be evaluated lazily, which is not possible in Ada. That >> is why the only way to do it is, IMO, as Randy had suggested: >> >> if Is_On (Trace_Topic) then >> Trace (Trace_Topic, ); >> end if; > > But this means a 2/1 ratio of noise to signal. The other way to accomplish this would be by means of a preprocessor, hence my question about how to integrate a preprocessor in the Ada build chain. Another option is to use a folding editor that hides things you do not currently wish to see. It's like running a preprocessor all the time.