I'm playing some more with immutables in D2. This program compiles:
struct Foo {
static int x;
}
void main() {
immutable Foo f;
Foo.x++;
f.x++;
}
Is this code supposed to be correct? If I have an immutable struct I want all of it to be immutable...
Bye and thank you,
bearophile