Is the compiler supposed to accept this?

Timon Gehr timon.gehr at gmx.ch
Wed Jul 10 11:17:07 PDT 2013


On 07/10/2013 07:47 PM, Brian Schott wrote:
> There are severel comments in the part of the dmd front end that show
> the syntax that the parser is looking for. Here's a listing:
>
> // function type (parameters) { statements... }
> // delegate type (parameters) { statements... }
> // function (parameters) { statements... }
> // delegate (parameters) { statements... }
> // function { statements... }
> // delegate { statements... }
> // (parameters) { statements... }
> // { statements... }
> // identifier => expression
>
> Based on the fact that "function (parameters) => expression" isn't
> written out like the others, I'm going to file an accepts-valid bug for
> this.

Accepts-valid is not a bug.


More information about the Digitalmars-d mailing list