foreach and element type inference
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 20 16:16:38 PST 2015
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
More information about the Digitalmars-d
mailing list