On 2014-06-26 16:37, H. S. Teoh via Digitalmars-d wrote:
This is probably because without -D, the entire ddoc code doesn't even run (which probably saves on compilation time), and comments are not kept by the parser/lexer, so by the time the compiler evaluates __traits(comment...), it doesn't know how to retrieve the comments anymore.
__traits(getUnitTests) also depends on a compiler flag (-unittest). -- /Jacob Carlborg