Why is D unpopular?

Siarhei Siamashka siarhei.siamashka at gmail.com
Thu May 26 00:00:20 UTC 2022


On Wednesday, 25 May 2022 at 23:34:30 UTC, max haughton wrote:
> https://d.godbolt.org/z/MjPe35Maz
>
> release does turn off bounds checking.

But it does not turn off bounds checking if you add "@safe:" at 
the top of your source file. This is a very important detail! In 
release builds we have safety in @safe code and full performance 
in @trusted/@system code (which needs much more careful review as 
a safeguard against bugs). In debug builds we still have bounds 
checks in the @trusted/@system code too, which is useful for 
testing/debugging.


More information about the Digitalmars-d mailing list