DScanner is ready for use

Kagamin spam at here.lot
Sun Jul 28 08:55:42 PDT 2013


Like typedef alias supports multiple declarators.
aliasDeclaration:
'alias' (aliasInitializer (',' aliasInitializer)* | type 
declarator (',' declarator)*) ';'

Also declarator supports initializer, but alias doesn't.
declarator:
     Identifier ('=' initializer)?
     ;

alias int a=1;
Error: alias cannot have initializer


More information about the Digitalmars-d-announce mailing list