3 ms·
I am not necessarily suggesting checking array boundaries on every array access, but at least providing an easy and safe way to refer to the array size. Array
by cm2187 11y ago
I am not necessarily suggesting checking array boundaries on every array access, but at least providing an easy and safe way to refer to the array size.
Array boundary checking is I think desirable but I can understand that for some applications it is an unacceptable performance hit.
- seanwilson 11y ago> Array boundary checking is I think desirable but I can understand that for some applications it is an unacceptable performance hit. Given the severe potential security implications for not using it, enabling bounds checking is a sensible default in my opinion. People always mention the speed of C for example but ignore what is being sacrificed for it.
- wslh 11y agoThis exists for years: https://msdn.microsoft.com/en-us/library/windows/hardware/ff565508(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/hardware/ff...