foreach and element type inference

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 20 11:43:14 PST 2015


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/



More information about the Digitalmars-d mailing list