--- Comment #3 from Don <> 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,

--- TEST CASE ---
struct Move{ int Dx; }
immutable Move genMove = { Dx:4};
static assert(genMove.Dx == 4); // not evaluatable at compile time.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to