Slincing behaviour

RenatoL rexlen at gmail.com
Fri Nov 11 03:46:02 PST 2011


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?


More information about the Digitalmars-d-learn mailing list