[Issue 10147] New: Make -w identical to -wi and deprecate it

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 23 03:54:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10147

           Summary: Make -w identical to -wi and deprecate it
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-05-23 03:54:53 PDT ---
-w is inherently broken, because it changes the semantics of code when static
inference and conditional compilation and whatnot are involved. -wi is by far
the smarter approach, and I really don't think that -w should have existed in
the first place. But given that we have it (and it predates -wi), removing it
at this point would break a lot of projects.

So, I propose that we simply make it so that -w does the same thing as -wi and
deprecate it. It's at least _possible_ that some code will break due to the
change in semantics, but it's that change in semantics that we want to
eliminate, and for the most part, code breakage is unlikely (and arguably would
be desirable given the semantics changes of using -w). So, with -w deprecated,
projects can migrate to using -wi, which won't change their code's semantics,
and we can possibly remove -w at some point in the future (or just remove it
from the docs if we don't want to go the extra step of removing it).

In any case, I think that we would be far better of with -w and that we should
at least seriously consider getting rid of it, and making it the same as -wi
seems like a good step in that direction to me.

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


More information about the Digitalmars-d-bugs mailing list