[Issue 6572] Deprecate typedef

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 29 10:01:16 PDT 2011


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


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #3 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-08-29 10:01:12 PDT ---
*sadface*

I think it is better to catch this in the parser stage, rather than semantic.


--- Dsymbols *Parser::parseDeclarations ---
             if (tok == TOKtypedef)
+            {
+                if (!global.params.useDeprecated)
+                    error("typedef is deprecated, use alias");
                 v = new TypedefDeclaration(loc, ident, t, init);
+            }


Regards
Iain

-- 
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