www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: eco gnuk.net



-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: -------
Apr 08 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12550


Brad Anderson <eco gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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