pragma(msg,...) messages are not inherently errors, so it should output to stdout, not stderr. But currently it outputs to stderr: ------------- > type test.d pragma(msg, "hello"); > dmd -c test.d > out.txt hello > type out.txt > dmd -c test.d 2> out.txt > type out.txt hello -------------
Their normal usage is to provide user-friendly error messages, so they should got to stderr.