Issuing compile-time warnings with line numbers?

Adam D. Ruppe destructionator at gmail.com
Tue Sep 20 18:44:18 PDT 2011


I'd suggest having a version(warnings_suck) { static assert(0); }
so people who want more info can just stick a -version= on the build
and get the compiler's help.

static assert(0) gives a kind of compile time stack trace.



More information about the Digitalmars-d-learn mailing list