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


kenn...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kenn...@gmail.com


--- Comment #1 from kenn...@gmail.com 2011-05-07 23:51:21 PDT ---
Please don't use Python to say a D syntax is invalid. Use the D spec or TDPL.

--------

In the D spec an array literal follows the rule:

ArrayLiteral:
    '[' ArgumentList ']'

ArgumentList:
    AssignExpression
        AssignExpression ','
    AssignExpression ',' ArgumentList

and an AssignExpression cannot be empty, so '[1,,]' should be rejected.

(BTW this rule doesn't handle '[]' at all.)

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

Reply via email to