debug = x overrides command line

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 24 05:43:23 PDT 2014


On 10/23/14 2:40 PM, Daniel Murphy wrote:
> "Steven Schveighoffer"  wrote in message
> news:m2avtc$15e3$1 at digitalmars.com...
>
>> I think there is a problem though. What if you leave your debug in by
>> accident? Now your pure code isn't so pure, and you have no idea.
>
> What if you leave any other form of debug code enabled by accident?  The
> answer is to use version control, and make a quick pass over changes
> before you commit.

This is kind of an absurd statement when you have clearly marked a line 
as being for debugging only. If only there were some automated tool that 
could detect this when you are compiling for release and flag it as an 
issue?

-Steve


More information about the Digitalmars-d mailing list