D-Programming-Language/phobos — pull request #2617 by nordlow (2014-10-15 21:36:29+00:00)
Title: Tag printing with debug to infer purity

The calls to `write` and `writeln` in member `check` prevents `rbtree` from begin `pure`. Adding `debug` is one way of fixing this. I bet you guys think differently but I anyway hope that you all agree on that purity is better than pretting printing in a check member function. One alternative solution would be to make `printTree` return a string which is then fed to `throw new Exception`.