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

Timon Gehr timon.gehr at gmx.ch
Sun Sep 9 06:44:43 PDT 2012


On 09/09/2012 03:40 PM, Ben Davis wrote:
> On 09/09/2012 14:28, Timon Gehr wrote:
>> I think so. Probably it is just a bug. (the spec does not indicate that
>> it is illegal iirc.) Maybe you can even fix it yourself, the parser
>> should be quite hackable.
>
> That's good to hear - but since I'm only using D for a project outside
> of work, and have very little time for it as it is, I don't think I can
> offer to fix it. I'll probably just use the brackets for now. :)

OK, I'll give it a try and maybe submit a pull request.


More information about the Digitalmars-d mailing list