We should deprecate -release

Vladimir Panteleev thecybershadow.lists at gmail.com
Sat Jul 13 15:28:36 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`.

What? No it's not.

It's equivalent to `-check=invariant=off -check=in=off 
-check=out=off -check=bounds=safeonly -check=assert=off 
-check=switch=off` (and what Nicholas pointed out).

`-O` and `-inline` are orthogonal to `-release` (and to each 
other).

(But the rest of your post makes sense with that in mind so I 
think that may have been what you meant?)



More information about the Digitalmars-d mailing list