[Issue 6572] Deprecate typedef
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Aug 29 19:42:35 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6572
--- Comment #4 from yebblies <yebblies at gmail.com> 2011-08-30 12:42:31 EST ---
(In reply to comment #2)
> Shouldn't we provide a complete library based typedef first?
> http://d.puremagic.com/issues/show_bug.cgi?id=5467
Maybe, probably.
(In reply to comment #3)
> *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
Wouldn't this prevent using typedef even inside version(none) etc blocks?  Is
that something we want?
-- 
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