Haxe (targetting HashLink) allows me to do this:
var a = [15, 16, 17]; var x1 = a; // Whoops! var x2 = a[-3]; // Well, now you're just being crazy. trace(x1); // What?? (0) trace(x2); // Same as above.
I’d assumed that would be a compilation error. Why is that not an error?