On 06/24/2010 10:02 AM, Andrei Alexandrescu wrote:
On 06/24/2010 10:01 AM, Ellery Newcomer wrote:
Hey,

in std.container, line 2623, I'm seeing

static if (is(_store.insertBack(value)))

The spec doesn't mention allowing expressions as far as I can remember,
so what's the deal? Yes, the argument is ambiguous with type at parse
time, but it has to get converted to an expression at some point. Is
allowing expressions in is expression a definite keeper?

My mistake, a typeof should wrap the expression.

Andrei

Ah, very good. Maybe the compiler should bug out on expressions?

Reply via email to