betterC and noboundscheck

Adam D. Ruppe destructionator at gmail.com
Wed Nov 22 15:22:10 UTC 2017


On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote:
> Why -betterC flag not 'include' -noboundscheck flag?

-noboundscheck is extremely harmful. If -betterC implied that, it 
would no longer be a better C, it would just be the same buggy C.

The compiler should perhaps inline the bounds check so it doesn't 
need the druntime function, but it certainly shouldn't skip it.



More information about the Digitalmars-d-learn mailing list