www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10285] New: Enum grammar documentation is incorrect

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

           Summary: Enum grammar documentation is incorrect
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: brian-schott cox.net


--- Comment #0 from brian-schott cox.net 2013-06-06 14:28:06 PDT ---
The documentation for EnumMember states that it can consist of "type '='
assignExpression", but comments in the the compiler source code indicate that
this should actually be "type Identifer '=' assignExpression".

Another issue is that the grammar does not disallow the "type Identifier '='
assignExpression" syntax if the enum has a name or base type specified, but
DMD's parser does.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 06 2013