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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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-23 11:10:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Implementing C/C++ style #include... Date: Fri, 23 Mar 2001 13:51:01 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <99g5v2$ht1$1@nh.pace.co.uk> References: <98m938$2iod0$1@ID-25716.news.dfncis.de> <3ab9f314.13778993@news.geccs.gecm.com> <99d2ao$ecu$1@nh.pace.co.uk> <99dpom$169$1@neptunium.btinternet.com><99drjt$nae$1@nh.pace.co.uk> <99fnf7$o3a$1@a1-hrz.uni-duisburg.de> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 985373474 18337 136.170.200.133 (23 Mar 2001 18:51:14 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 23 Mar 2001 18:51:14 GMT 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 Xref: supernews.google.com comp.lang.ada:6025 Date: 2001-03-23T18:51:14+00:00 List-Id: pragma Debug was mentioned a handful of posts back. One of the issues brought up about it was that it is not portable. (Not a standard pragma) There are a lot of ways of dealing with debug code or multiple configuration issues. Which you end up using depends on what you want to get out of it. One of the down-sides of pragma Debug is that it is a static, compile-time switch. You can't toggle the debug code on and off as you execute the program. Sometmes that's a good thing and other times not. For workstation apps that don't have speed/space/verification issues, I like to have the debug stuff toggleable while running. For embedded systems or things with stringent testing requirements (or timing issues, or memory issues, or.... :-) it is nice to get the code removed by the compilerwhen you're ready for production. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Georg Bauhaus" wrote in message news:99fnf7$o3a$1@a1-hrz.uni-duisburg.de... > pragma Debug (Trace.Log_Line ("some text to log to file")); > > ?-) > > Georg >