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=unavailable 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!feeder.eternal-september.org!gegeweb.org!news.ecp.fr!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Mon, 27 Jul 2015 15:26:37 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1438028798 10616 24.196.82.226 (27 Jul 2015 20:26:38 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 27 Jul 2015 20:26:38 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:27049 Date: 2015-07-27T15:26:37-05:00 List-Id: "EGarrulo" wrote in message news:e610ca1e-4df6-4fbb-b3a1-ac35694d9072@googlegroups.com... >I would like to add logging statements to my units. By using >GNATColl.Traces, I could add lines like this one: > >if Active (Me) then > Trace (Me, "Performing Step " & Step(...)); >end if; > >However, this is too verbose. Why? That's how it's done in Ada. The Janus/Ada compiler has literally thousands of trace messages like the above (we have a fancy menu system to turn them on and off on the fly in test versions of the compiler), and I don't think that they have much impact on readability. Besides, if you're going to be writing Ada, you're going to be writing code that's more verbose (in many ways) than C-family languages. It might take some getting used to, but there is no time better than the present to getting used to that. Randy.