On Thursday, 29 May 2014 at 19:06:15 UTC, Steven Schveighoffer wrote:
Static if is certainly NOT an attribute, it doesn't make any sense.Well... it sorta does. static if does not introduce a new scope, even with {}, and this only happens with attributes.-Steve
in which case
static if(cond) {
immutable:
}
int x;
should not create x as immutable if cond is true. The current
behavior is not consistent with attribute either.
