http://d.puremagic.com/issues/show_bug.cgi?id=2066
------- Comment #4 from [EMAIL PROTECTED] 2008-11-24 00:23 ------- Thanks for the workaround, Janice. Here is another example that is almost certainly related (CTFE seems to work only with single-digit numbers!): import std.stdio; import std.string; template Foo(uint id) { invariant string Foo = "writefln(" ~ std.string.toString(id) ~ ");"; } invariant uint ID = 1; // THIS LINE WORKS //invariant uint ID = 10; // THIS LINE FAILS void main() { mixin(Foo!(ID)); } --