CaseStatement specification issue

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 15 17:20:27 PDT 2014


On 08/16/2014 01:41 AM, ketmar via Digitalmars-d wrote:
> On Sat, 16 Aug 2014 01:31:42 +0200
> Timon Gehr via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>
>> What is the problem? This passes DMD's parser.
> that is the problem: it shouldn't.

That's not what you said.

On 08/16/2014 12:21 AM, ketmar via Digitalmars-d wrote:
> and we'll find some more bugs there:
> ...
> so we can see that things like 'case n+=5:' should be allowed, while
> they are not.


> this has no sense, and it's easy to
> fix this in grammar itself.
>

There is nothing to be 'fixed'. The code is still rejected when it is 
analysed.


More information about the Digitalmars-d mailing list