www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13310] New: Old style multiple alias declaration not documented

https://issues.dlang.org/show_bug.cgi?id=13310

          Issue ID: 13310
           Summary: Old style multiple alias declaration not documented
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com

---
alias CHAR*         LPCH,  LPSTR,  PCH,  PSTR;
---

AliasDeclaration:
    alias StorageClassesopt BasicType Declarator
    alias AliasDeclarationX ;

AliasDeclarationX:
    Identifier TemplateParametersopt = StorageClassesopt Type
    AliasDeclarationX , Identifier TemplateParametersopt = StorageClassesopt
Type

Obviously AliasDeclarationX doesn't match because there's no "=" token, so
let's try the first rule. This doesn't match because Declarator doesn't allow
commas and multiple identifiers.

--
Aug 16 2014