On Fri, 24 May 2013 09:54:20 -0400, Dicebot <[email protected]> wrote:
On Friday, 24 May 2013 at 13:46:49 UTC, Steven Schveighoffer wrote:This was ALWAYS the case. struct S { int x = 5; // sets S.init.x to 5 }As far as I understand Don, this behavior should be considered misleading too, it does not matter if variable is const or not. And that does have some sense, because you have initializer syntax which does not really initialize anything on its own, contrary to very same initializer syntax used with variable.
Being able to dictate the .init data is very powerful and useful. You can't remove that feature.
But the point I'm making is that the syntax IS consistent. It just never worked before, because of the implicit 'static'
-Steve
