www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10514] New: Constructor declaration grammar is incorrect

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

           Summary: Constructor declaration grammar is incorrect
           Product: D
           Version: unspecified
          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-30 15:37:38 PDT ---
As demonstrated in object.di, the correct grammar for a constructor declaration
is this:

constructor:
    'this' parameters (functionBody | ';')
    ;

A function body is not required.

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