Created attachment 1533
example code
import std.file, std.stdio;
void main () {
foreach (fileName; dirEntries (".", "*.*", SpanMode.breadth)) {
writeln (fileName);
}
}
dmd 2.068-b2 on Windows:
1. "dmd -inline -debug -m32" does not list current directory (output is empty),
2. "dmd -inline -debug -m64" crashes,
3. just "-inline" or "-debug" works fine.
With dmd 2.068-b1, all of the above work correctly.
Specifying the concrete type ("string fileName" or "DirEntry fileName") in foreach does not seem to affect the outcome.