*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
Comment #4 by yebblies — 2011-08-29T19:42:31Z
(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?