[Issue 3689] New: Grammar does not allow const(int)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 7 21:42:10 PST 2010


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

           Summary: Grammar does not allow const(int)
           Product: D
           Version: 2.036
          Platform: Other
               URL: http://digitalmars.com/d/2.0/declaration.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody at puremagic.com
        ReportedBy: jlquinn at optonline.net


--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2010-01-07 21:42:09 PST ---
Dmd allows declaring something like

const(int) a = 3;

However, the grammar cannot parse this as written.

Declaration
Decl
StorageClasses Decl
const Decl
FAILURE

The () can't be parsed.

http://digitalmars.com/d/2.0/arrays.html#strings is the first example of this
syntax in the docs with immutable(char)[].

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


More information about the Digitalmars-d-bugs mailing list