Timothee Cour:

void fun(int[3]) {}
void main() {
    int[3] x = [1, 2, 3];
    fun(x); // OK
    fun([1, 2, 3]); // error
    fun([1, 2, 3]s); // OK
}

Sorry, there's no error there.


yes, that was the prime motivation for DIP34,

It seems Hara has received your message:
https://d.puremagic.com/issues/show_bug.cgi?id=8903#c7

Bye,
bearophile

Reply via email to