On 08/25/14 18:52, Jonathan M Davis via Digitalmars-d-learn wrote: > Another commonly used one is is(typeof(foo)). typeof(foo) gets the type of foo > and will result in void if foo doesn't exist, and is(void) is false, whereas
D is not quite that simple. ;) static assert(is(void)==true); (a) `typeof(invalid)` is an error; (b) the `is(...)` expression swallows errors; hence (a)+(b) -> static assert(is(typeof(invalid))==false); artur