Test whether bounds checking is on?


#1

dear j experts—I want to put a variety of asserts into my code, sort of like “programming by contract.” the cases in which I care about checking them are exactly the cases in which I like bounds checking; and when I want to speed it up, I am happy not to do my asserts. so, is there a const I can test to see whether bounds checking is currently enabled?

regards, /iaw


#2

IIUC you can use @boundscheck for that.