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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 8 14:47:41 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12550

           Summary: Deprecate -noboundscheck and replace with more useful
                    -boundscheck= option
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: eco at gnuk.net


--- Comment #0 from Brad Anderson <eco at gnuk.net> 2014-04-08 14:47:38 PDT ---
-noboundscheck should be deprecated and replaced with
-boundscheck=<all|safe|none> for a couple of reasons.

1. What -noboundscheck actually does is confusing. Its purpose is to turn off
bounds checking in @safe code (and all other code) which comes as a surprise to
a lot of people. -release turns off bounds checking in non- at safe code (which
also surprises some people) but leaves it on for @safe code.
2. There is currently no way to turn on bounds checking for release builds
currently.
3. There is currently no way to turn off bounds checking for non- at safe code
without pulling in everything -release does (or turning off bounds checking for
@safe code too).

If we want to take this one step further there should be command line options
(both enabling and disabling) for every effect -release has and -release should
just be an alias for specifying a set of those options.

(Martin Krejcirik came up with the idea for -boundscheck=)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list