[Issue 5953] Too many trailing commas are accepted
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat May  7 23:55:21 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5953
kennytm at gmail.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kennytm at gmail.com
--- Comment #1 from kennytm at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list