Temporarily disable all purity for debug prints

Adam D. Ruppe destructionator at gmail.com
Mon Apr 11 15:21:22 PDT 2011


bearophile wrote:
> Is this an acceptable debug printing for you?

Yes. In fact, I view it as better than always seeing it twenty
times because it reflects what's actually going on.

You already know what it's supposed to do, and if it did what it
was supposed to do, you wouldn't be debugging it.

So now you need to know what it actually is doing, and if
optimizations change that, better to know about it. The single
print tells you that.


More information about the Digitalmars-d mailing list