Curiously Recurring C++ Bugs
Paul Backus
snarwin at gmail.com
Fri Jul 19 20:45:37 UTC 2024
On Friday, 19 July 2024 at 14:34:33 UTC, cc wrote:
> On Friday, 12 July 2024 at 20:13:24 UTC, Walter Bright wrote:
>> `-release` hasn't turned of bounds checking for something like
>> 15 years. To disable it, `-noboundscheck` is required.
>
> This is very interesting because until this past week or so I
> thought -release implied -noboundscheck as well. I think I've
> been using D around 8 or 9 years now. I had already stopped
> using -release some time ago, but nonetheless, whatever
> documentation there was for those command line args must have
> been veeery slow to catch up to reality.
-release includes -boundscheck=safeonly, which turns off bounds
checking in @system and @trusted code.
Most D code is not (yet) @safe, so the result is that most D code
will have its bounds checks removed when using -release.
More information about the Digitalmars-d
mailing list