Should unittests run as logical part of compilation?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jan 26 19:45:42 PST 2014


On 1/25/14 8:29 PM, Rikki Cattermole wrote:
> On Saturday, 25 January 2014 at 22:55:33 UTC, Andrei Alexandrescu wrote:
>> ./modulename.d(103): Unittest failed: user-defined message
> My idea for pragma(error,) and pragma(warning,) would definately be
> invaluable to doing this without adding this specific behaviour. (Really
> should deal with that.)

What about static assert(false, "message")?

Andrei


More information about the Digitalmars-d mailing list