struct S { const int i; this(int i) { // 第1次赋值为初化 this.i = i; } } void main() { auto s = S(42); // 不行 s.i = 43; //也不行 s = S(44); }