Is the compiler supposed to accept this?
Brian Schott
briancschott at gmail.com
Wed Jul 10 10:47:49 PDT 2013
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.
More information about the Digitalmars-d
mailing list