Unit tests in D
Ary Borenszweig
ary at esperanto.org.ar
Fri May 7 07:10:25 PDT 2010
Walter Bright wrote:
> Michel Fortin wrote:
>> If even Walter has difficulty figuring out the ! around __traits,
>
> Missing a ! is always a problem. People even do not see the word "not".
I think the problem is confusing this:
static assert(!__traits(compiles, Range!(15, 3, 0) ));
with this:
static assert!(__traits(compiles, Range!(15, 3, 0) ));
Probably a little obvious in this case, but for this:
foo!(bar, baz)
foo(!bar, baz)
it gets trickier... hmmm... very bug prone :-P
More information about the Digitalmars-d
mailing list