On Friday, 20 November 2015 at 19:43:16 UTC, Jack Stouffer wrote:
On Friday, 20 November 2015 at 19:37:09 UTC, Nicolas F. wrote:
My suggestion is to have the compiler output a specific error
message should it encounter "auto" inside a foreach
declaration, pointing out that "auto" is neither needed nor
allowed in this context to get type inference.
Sounds like a good idea! Please file an enhancement request on
http://issues.dlang.org/
Yeah. Whenever you think that an error message is bad, and you
have a better suggestion, please create an enhancement request
for it.
- Jonathan M Davis