A proposal for better template constraint error reporting.
bearophile
bearophileHUGS at lycos.com
Wed Oct 26 10:10:24 PDT 2011
Gor Gyolchanyan:
> The ddoc comments, preceding parts of template constraints would be
> used to specify why exactly did the template fail to instantiate, for
> example:
Good. Is it possible to do the same thing with unittests?
/// foo
unittest {
assert(false);
}
==>
foo unittest failed
But maybe this syntax is better:
unittest(foo) {
assert(false);
}
Bye,
bearophile
More information about the Digitalmars-d
mailing list