debug & optimization

Charles Hixson charleshixsn at earthlink.net
Tue Jun 18 12:39:31 PDT 2013


Would:
void    test(string s = "default message")
{ debug
   {
       .........
   } // debug
} // test

be optimized away in code that was compiled with debug turned off?

I've documented my code that this is a noop unless debug is true, but 
I'm not really sure that's correct, or whether there would be a function 
call

-- 
Charles Hixson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130618/988dd6ab/attachment.html>


More information about the Digitalmars-d-learn mailing list