We should deprecate -release
Steven Schveighoffer
schveiguy at gmail.com
Thu Jul 18 03:23:39 UTC 2024
On Saturday, 13 July 2024 at 01:55:16 UTC, Steven Schveighoffer
wrote:
> The `-release` flag is equivalent to `-O -boundscheck=safeonly
> -inline`.
>
> I think we should remove it. If you want no bounds checks, you
> should have to really want it enough to type that whole
> monstrosity in. It's trivial to avoid bounds checks by using
> `.ptr[index]` in `@system` code. In my dub projects, I rewrite
> the release mode to keep bounds checks for all code, it's that
> important.
>
> What do you think? Deprecate for 3 versions, then remove.
OK, so after reading all the pushback from Walter, which is
completely missing the point, let's go around!
Let's remove --release from ldc. That's the only compiler anyone
cares about to release with. Even dmd ships built with ldc.
https://github.com/ldc-developers/ldc/issues/4709
-Steve
More information about the Digitalmars-d
mailing list