www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15250] New: Grammar does not contain rules for multiple


          Issue ID: 15250
           Summary: Grammar does not contain rules for multiple slices in
                    an index expression
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/grammar.html
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com
            Blocks: 10233

Context: https://github.com/Hackerpilot/libdparse/issues/67

The grammar contains the following rule:
PostfixExpression [ AssignExpression .. AssignExpression ]

This does not allow for multi-dimensional slicing such as `a[1..2, 3..4];`

Oct 26 2015