new A().b() currently requires extra brackets/parentheses

Timon Gehr timon.gehr at gmx.ch
Sun Sep 9 07:43:23 PDT 2012


On 09/09/2012 03:28 PM, Timon Gehr wrote:
> ...
>
> I think so. Probably it is just a bug. (the spec does not indicate that
> it is illegal iirc.)

I was wrong, the grammar actually precludes this, so it has to be
changed as well. Anyway, this is the pull request:
https://github.com/D-Programming-Language/dmd/pull/1111




More information about the Digitalmars-d mailing list