[Issue 1341] typeof(int) should probably be legal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 3 06:03:41 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1341





------- Comment #5 from clugdbug at yahoo.com.au  2008-07-03 08:03 -------
One thing worries me about this...
in D1.0, a common metaprogramming idiom is "is(typeof(xxx))"

For example, this compiles in D1.0:
------
static assert(!is(typeof(nonexistent)));
------
Lots of code (including BLADE, for example) will fail if that stops working.
Please make sure that doesn't get broken in fixing this bug!


-- 



More information about the Digitalmars-d-bugs mailing list