On 10.08.22 10:20, Johan wrote: > ``` > shared immutable int[int] aa; > void main () { > // (cast()aa)[1] = 1; // works without immutable > (*cast(int[int]*)(&aa))[1] = 1; > } > ``` We have shared static constructors for that: shared static this() { aa[1] = 1; /* no cast needed */ }