I find this a bit silly:
import std.algorithm: copy;
void main() {
char[5] arr1 = "hello", arr2;
arr1[].copy(arr2[]); // Error.
dchar[arr1.length] arr3;
arr1[].copy(arr3[]); // OK.
}
What do you think?
Bye,
bearophile
I find this a bit silly:
import std.algorithm: copy;
void main() {
char[5] arr1 = "hello", arr2;
arr1[].copy(arr2[]); // Error.
dchar[arr1.length] arr3;
arr1[].copy(arr3[]); // OK.
}
What do you think?
Bye,
bearophile