to auto or not to auto ( in foreach )
dom via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 16 07:00:56 PDT 2016
foreach(auto v; msg)
writeln(v);
gives an error that a basic type is expected
foreach(v; msg)
writeln(v);
works
.. but why?
More information about the Digitalmars-d-learn
mailing list