[Issue 1880] templates instantiated with non-constants should fail sooner

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 28 20:08:37 PST 2008


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





------- Comment #1 from wbaxter at gmail.com  2008-02-28 22:08 -------
You can also see it just by doing:

Property x;
static if(is(CompileTimeCheck!(x))) { pragma(msg, "CTC!(x) passed!"); }

this shouldn't pass the is() check in my opinion.  It's shouldn't be
semantically valid to pass a non-constant runtime value to a template that
requires a compile-time constant value.


-- 



More information about the Digitalmars-d-bugs mailing list