<div>1.</div><div><br></div>enum i = 10;<div>pragma(msg, is(i == enum) || is(typeof(i) == enum)); // <- false?!<br></div><div><br></div><div>I can't find a way to identify that i is an enum, not a variable; can not be assigned, has no address, etc.</div>
<div><br></div><div><br></div><div>2.</div><div><br></div><div>import std.stdio;</div><div>pragma(msg, !is(std) && is(typeof(std))); // <- true?!</div><div><br></div><div>std.stdio is a module, it looks like a variable. typeof(std) == void... What the? Why does it even have a type?</div>
<div>I can't find a sensible way to distinguish std from any other regular variable.</div>