debug = x overrides command line
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 22 10:11:17 PDT 2014
On Wed, 22 Oct 2014 17:04:41 +0000
Gary Willoughby via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> 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.
i think that compiler should emit warning on such code. it can be handy
to do such things, but let compiler warn us that "debug=" is not very
safe thing to do.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141022/8e692ff9/attachment.sig>
More information about the Digitalmars-d
mailing list