A serious security bug... caused by no bounds checking.
Steven Schveighoffer
schveiguy at yahoo.com
Thu Apr 10 10:43:42 PDT 2014
On Thu, 10 Apr 2014 13:35:34 -0400, Tommi <tommitissari at hotmail.com> wrote:
>> A compiler flag is a blunt instrument. It affects all code the compiler
>> touches, which may or may not affect code that you are intending to
>> change.
>
> Yes, such a compiler flag is a blunt and dangerous instrument and
> everybody should stay away from it. But everybody agrees on those points
> already. That's _not_ what you need to prove to show that such a flag
> shouldn't exist. What you need to show is that no-one will ever find
> them-self in a situation where such a blunt instrument would be useful.
I contend that they won't. @trusted exists and should be used for that
purpose.
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.
-Steve
More information about the Digitalmars-d
mailing list