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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Brad Anderson <[email protected]> 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-@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-@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: -------

Reply via email to