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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.39.138 with SMTP id p10mr35803545obk.5.1438083585636; Tue, 28 Jul 2015 04:39:45 -0700 (PDT) X-Received: by 10.140.20.147 with SMTP id 19mr501592qgj.20.1438083585570; Tue, 28 Jul 2015 04:39:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!pg9no4659359igb.0!news-out.google.com!b31ni980qge.0!nntp.google.com!z61no3772643qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Jul 2015 04:39:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9d870b85-cd15-4814-af8d-0e0cd65eaff6@googlegroups.com> Subject: Re: Running a preprocessor from GPS? From: EGarrulo Injection-Date: Tue, 28 Jul 2015 11:39:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27078 Date: 2015-07-28T04:39:45-07:00 List-Id: On Tuesday, July 28, 2015 at 12:30:18 PM UTC+2, Brian Drummond wrote: > Wrap the test and the string formatting into a procedure. You'll probably > need a family of such procedures for different formats - keep them in a > package. > > Write a second package body, where every procedure implementation is > simply "null;" and build with whichever package body is appropriate. Thanks but this wouldn't work in my case because I want logging code to stay, while being able to enable or disable it -- and with different levels -- at runtime.