Hacker News new | past | comments | ask | show | jobs | submit
Oh, it also work for runtime length:

https://godbolt.org/z/PnaWWcK9o

Now try that on a compiler without -fsanitize=bounds, yet full ISO C compliant.
You can still access the size which is what the parent was asking for. And please tell me how you would try this on an ISO compliant compiler for D.