[Issue 12615] Warn against, and then deprecate old alias syntax
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Apr 23 06:47:26 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=12615
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com
--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to bearophile_hugs from comment #5)
> What other constructs are a problem for the warn against the old alias
> syntax?
Function pointers. There's an issue where 'alias f = extern(C) void function()'
does not work (it's a filed bug). Until that is fixed we can't plan to go
forward with this warning.
I would also argue that we should start developing a D porting tool that
auto-converts the old alias syntax to the new one. It should be trivial to
implement and should get rid of the nuisance of manually fixing code.
--
    
    
More information about the Digitalmars-d-bugs
mailing list