On Wed, 22 Oct 2014 17:04:41 +0000 Gary Willoughby via Digitalmars-d <[email protected]> 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.
signature.asc
Description: PGP signature
