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

Reply via email to