Thread overview
[Issue 3689] New: Grammar does not allow const(int)
Jan 08, 2010
Jerry Quinn
Feb 13, 2010
Walter Bright
Mar 09, 2010
Walter Bright
January 08, 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@puremagic.com
        ReportedBy: jlquinn@optonline.net


--- Comment #0 from Jerry Quinn <jlquinn@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: -------
February 13, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3689


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2010-02-12 22:57:13 PST ---
changeset 1423

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3689


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-03-08 22:27:05 PST ---
Fixed dmd 2.041

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