On 10/22/14 7:23 AM, Marco Leise wrote:
Am Tue, 21 Oct 2014 22:33:02 -0400
schrieb Steven Schveighoffer <[email protected]>:

On 10/21/14 3:24 PM, Walter Bright wrote:
On 10/21/2014 12:15 PM, Gary Willoughby wrote:
On Tuesday, 21 October 2014 at 17:25:37 UTC, Steven Schveighoffer
wrote:
Yep, you can just turn off purity when it gets in the way.

-Steve

Please raise a ticket for this.

That was done deliberately - it's a feature. It enables things like
debugging printf's to be inserted into pure functions.

Right. But my understanding was that was only when you were actually
compiling with debug enabled. I didn't expect it to be a feature to be
able to do this without debug enabled, as it currently is.

You might be surprised that -debug doesn't enable anything
special. It is just a shortcut for setting the debug level to
1 (a shortcut for -debug=1). Likewise debug statements are a
shortcut for debug(1) {…}. This is also analogous to -version.


I am surprised. So you can actually enable all debug code permanently.

I think debug=... statement should be made illegal.

-Steve

Reply via email to