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

Matej Nanut matejnanut at gmail.com
Fri Mar 28 04:47:40 PDT 2014


I was sure adding auto would work. I'm still sure it does in some
cases, but can't try right now.

I guess it depends on the type of foreach?

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?


More information about the Digitalmars-d mailing list