Jonathan M Davis:

It's a compiler bug. immutable data should not be initialized more than once.

My point was another one, regarding this refused code:


import std.algorithm: copy;
immutable int[2] data;
static this() {
    [10, 20].copy(data[]); // Error.
}
void main() {}


Bye,
bearophile

Reply via email to