http://d.puremagic.com/issues/show_bug.cgi?id=3488
--- Comment #3 from Don <[email protected]> 2009-11-09 03:24:21 PST --- It's happening because static struct initializers with names are not evaluated at compile time. And this is because init.c, StructInitializer::toExpression() doesn't deal with it. BTW -- now that we have struct literals, I'm not sure that we need struct initializers any more. They're a bit annoying, implementation-wise. --- TEST CASE --- struct Move{ int Dx; } immutable Move genMove = { Dx:4}; static assert(genMove.Dx == 4); // not evaluatable at compile time. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
