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: nob...@puremagic.com ReportedBy: jlqu...@optonline.net --- Comment #0 from Jerry Quinn <jlqu...@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: -------