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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd63afa4dc364b7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-22 07:04:09 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-xfer.nuri.net!newsfeed.dacom.co.kr!newsfeed.cwix.com!newsfeed.mathworks.com!cyclone.swbell.net!nnrp1.sbc.net.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <98m938$2iod0$1@ID-25716.news.dfncis.de> <3ab9f314.13778993@news.geccs.gecm.com> Subject: Re: Implementing C/C++ style #include... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Thu, 22 Mar 2001 09:02:54 -0600 NNTP-Posting-Host: 208.191.184.67 X-Complaints-To: abuse@swbell.net X-Trace: nnrp1.sbc.net 985273375 208.191.184.67 (Thu, 22 Mar 2001 09:02:55 CST) NNTP-Posting-Date: Thu, 22 Mar 2001 09:02:55 CST Organization: SBC Internet Services Xref: supernews.google.com comp.lang.ada:5993 Date: 2001-03-22T09:02:54-06:00 List-Id: "Chris M. Moore" wrote in message news:3ab9f314.13778993@news.geccs.gecm.com... > package Debug is > > type Debug_Mode is (off, minimal, verbose); > > Mode : constant Debug_Mode := Verbose; > > end Debug; > > ... > > with Debug; use Debug; > ... > if Debug.Mode > Minimal then > test_mode.test_code; > end if; > > The compiler should optimise out the debug code when Mode = Off. And > it's portable. By what rule in the RM is the code removed?