CaseStatement specification issue
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 15 15:21:22 PDT 2014
On Fri, 15 Aug 2014 19:46:07 +0000
Sergey Kozyr via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> Let's open doc http://dlang.org/statement#CaseStatement
and we'll find some more bugs there:
CaseStatement:
case ArgumentList : ScopeStatementList
ArgumentList:
AssignExpression
AssignExpression ,
AssignExpression , ArgumentList
AssignExpression:
ConditionalExpression
ConditionalExpression = AssignExpression
ConditionalExpression += AssignExpression
...
and so on.
so we can see that things like 'case n+=5:' should be allowed, while
they are not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140816/33b3405c/attachment.sig>
More information about the Digitalmars-d
mailing list