On Saturday, 16 July 2016 at 14:00:56 UTC, dom wrote:
foreach(auto v; msg) writeln(v);gives an error that a basic type is expected foreach(v; msg) writeln(v); works .. but why?
`Note: The ForeachTypeAttribute is implicit, and when a type is not specified, it is inferred. In that case, auto is implied, and it is not necessary (and actually forbidden) to use it.`
http://dlang.org/spec/statement.html#ForeachStatement