We should deprecate -release
Timon Gehr
timon.gehr at gmx.ch
Sat Jul 13 21:13:02 UTC 2024
On 7/13/24 19:12, Kapendev wrote:
> 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.
>>
>> -Steve
>
> I don't really care about this, but some projects might depend on it for
> some reason.
> Is it a problem if it just exists? Looks like a simple thing to maintain.
It's misleading. It should not be used for creating binary releases. It
also undercuts D's memory safety aspirations.
More information about the Digitalmars-d
mailing list