A serious security bug... caused by no bounds checking.
Steven Schveighoffer
schveiguy at yahoo.com
Thu Apr 10 10:57:16 PDT 2014
On Thu, 10 Apr 2014 13:52:54 -0400, Tommi <tommitissari at hotmail.com> wrote:
> On Thursday, 10 April 2014 at 17:43:42 UTC, Steven Schveighoffer wrote:
>> [..]
>> Note that I could find useful disabling of const checks, or override
>> checks, or dynamic casts. It doesn't mean I should get a compiler
>> switch.
>
> There's no point in turning off any safety / correctness checks that can
> be performed at compile-time.
Unless they are warranted. See cast for instance.
> But I could see an argument made for being able to disable any given
> category of runtime safety checks.
As a compiler switch? I don't think it's worth it. -noboundscheck does
what it does for historical reasons, not logical.
-Steve
More information about the Digitalmars-d
mailing list