betterC and noboundscheck

codephantom me at noyb.com
Fri Nov 24 00:17:31 UTC 2017


On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote:
> If I add -noboundscheck flag all works fine.
>
> dmd version is 2.076.1
>
> Why -betterC flag not 'include' -noboundscheck flag?
> It's bug or in some cases it's useful?


Interestingly, ldc2 will compile this ok, without the 
-noboundscheck flag

btw. you should start using: boundscheck=off/on/safeonly flag 
instead i believe.

https://dlang.org/dmd-windows.html#switch-boundscheck



More information about the Digitalmars-d-learn mailing list