debug = x overrides command line
Gary Willoughby via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 22 10:04:41 PDT 2014
On Wednesday, 22 October 2014 at 13:58:44 UTC, Steven
Schveighoffer wrote:
> I am surprised. So you can actually enable all debug code
> permanently.
>
> I think debug=... statement should be made illegal.
>
> -Steve
I'd agree with that to be honest. It seems odd to allow this in
code. I can understand the rationale for doing unpure things in a
pure function in debug mode but that mode should be specified on
the command line, not in code. Like you say, you can enable debug
mode permanently in code.
More information about the Digitalmars-d
mailing list