3 ms·
Ada absolutely can tell. Divide by zero throws an exception and buffer overflows are caught by essentially every modern compiler.
by jacoblambda 8y ago
Ada absolutely can tell. Divide by zero throws an exception and buffer overflows are caught by essentially every modern compiler.
- jstimpfle 8y ago> buffer overflows are caught by essentially every modern compiler. If you use high-level arrays with bounds-checking, which are not always fast enough, and can become a maintenaince burden. If they should be absolutely secure (like, std::vector isn't - it can be moved behind your back), they also require GC.
- pjmlp 8y agoSure it can, but that wasn't the question. Rather what happened to the code I have written. NDAs make us not able to tell about stuff. What magic variant of C or C++ compiler are you using that throws errors on buffer corruption, unless you are speaking about using code with debugging mode enabled in production instead of using a proper release build.