Baz:
int[3] m = cast(int[3])[1, 2, 3]; writeln(m.sizeof); writeln([1, 2, 3].sizeof);
The sizeof values aren't relevant for D array casts. What matters are the array "contents".
Bye, bearophile
Baz:
int[3] m = cast(int[3])[1, 2, 3]; writeln(m.sizeof); writeln([1, 2, 3].sizeof);
The sizeof values aren't relevant for D array casts. What matters are the array "contents".
Bye, bearophile