void main() { ulong [3][2] static_array = [ [0,1,2],[3,4,5] ]; static_array[2][1] = 6; }
The static array has length 2, so index 2 is out of bounds, must be 0 or 1.
Kagamin via Digitalmars-d-learn Thu, 25 Jan 2024 12:41:47 -0800
void main() { ulong [3][2] static_array = [ [0,1,2],[3,4,5] ]; static_array[2][1] = 6; }
The static array has length 2, so index 2 is out of bounds, must be 0 or 1.