www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12615] New: Warn against, and then deprecate old alias syntax

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

          Issue ID: 12615
           Summary: Warn against, and then deprecate old alias syntax
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

Now we have the syntax:

alias T = int;

So this syntax should give a warning, later a deprecation message, and later an
error:

alias int T;

(The "alias this" syntax must be kept, it's for another purpose.)

--
Apr 22 2014