int[7] arr = [1,2,3,4,5,6,7]; writeln(arr[$..$]);
this simply prints a newline... I expected a runtime error (or better a compile time error) but it does nothing ... why?
int[7] arr = [1,2,3,4,5,6,7]; writeln(arr[$..$]);
this simply prints a newline... I expected a runtime error (or better a compile time error) but it does nothing ... why?