Temporarily disable all purity for debug prints

Adam D. Ruppe destructionator at gmail.com
Mon Apr 11 14:39:02 PDT 2011


I wonder if it would be a good idea to have logging or debug prints
that simply lie about being pure so you can use them there.

Something like this:

==
extern(C) pure void puts(const char*);

pure void hello() {
	puts("hello world from pure land\n"); // compiles
}
==


More information about the Digitalmars-d mailing list