why foreach() don't use 'auto'?

ketmar ketmar at ketmar.no-ip.org
Fri Mar 28 22:14:49 PDT 2014


> If I understand foreach correctly, it uses either opApply() or 
> the
> range static interface to do its job, and with a range interface
> "auto" does actually work?
parser doesn't accept 'auto' in foreach(). i made a patch for it, 
but not sure if it will be accepted, as there is no good tests 
and no language spec fix.


More information about the Digitalmars-d mailing list