[Issue 12550] Deprecate -noboundscheck and replace with more useful -boundscheck= option

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 10 08:14:54 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12550

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
I'd like to chime in here and say that allowing disabling bounds checks on
@safe code is completely wrong, and should be treated as a bug.

In no case, should one be able to disable bounds checks on @safe code.
Otherwise, it immediately becomes un- at safe, and @safe loses all it's
credibility.

The original purpose of -noboundschecks was to allow turning off bounds checks
in debug code I thought, not @safe code. I have no idea why it turns off bounds
checks on @safe code. I would consider that a bug.

--


More information about the Digitalmars-d-bugs mailing list