On Sunday, 16 June 2013 at 11:15:58 UTC, Timon Gehr wrote:

Feature. Eg. http://dlang.org/expression.html#ArgumentList :

ArgumentList:
    AssignExpression
    AssignExpression ,               // <- here
    AssignExpression , ArgumentList



On Sunday, 16 June 2013 at 11:21:29 UTC, Peter Alexander wrote:
On Sunday, 16 June 2013 at 11:01:39 UTC, monarch_dodra wrote:
I've come to notice something which I *though* was nice, but I have not yet used it extensively, because I'm unsure it is a feature. I wasn't able to find an answer in the grammar.

It's in the grammar and intentional for the reasons you listed.

EnumMembers:
    EnumMember
    EnumMember ,
    EnumMember , EnumMembers

The second rule is the one that allows it. There's similar rules for the other cases you noticed.

Ah... I saw those lines, but didn't quite interpret them correctly.

Thanks for the answer.

Reply via email to