debug = x overrides command line
Marco Leise via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 22 04:23:17 PDT 2014
Am Tue, 21 Oct 2014 22:33:02 -0400
schrieb Steven Schveighoffer <schveiguy at yahoo.com>:
> 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.
>
> -Steve
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.
--
Marco
More information about the Digitalmars-d
mailing list