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-Thread: 103376,400766bdbcd86f7c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: This can't be done in Ada...or? Date: Sat, 12 Feb 2005 20:55:31 +0100 Message-ID: <873bw1h7t8.fsf@deneb.enyo.de> References: <1108139611.709714.36170@o13g2000cwo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1108239149 13789 212.9.189.177 (12 Feb 2005 20:12:29 GMT) X-Complaints-To: Cancel-Lock: sha1:nuOPbO6PuYtz+fY32ZgzZ6jy/bk= Xref: g2news1.google.com comp.lang.ada:8296 Date: 2005-02-12T20:55:31+01:00 List-Id: * Duncan Sands: >> 3. does *not* cause any execution overhead if disabled. > > presumably you mean: when disabled at compile time? In C, you can reach almost zero run-time overhead (certainly non-measurable unless you put optional logging into inner loops) if you use a preprocessor macro to fake lazy evaluation. As far as I know, it is not possible in Ada to suppress evaluation of subprogram arguments at run-time.