http://d.puremagic.com/issues/show_bug.cgi?id=7453
--- Comment #1 from Andrej Mitrovic <[email protected]> 2012-04-19 19:07:56 PDT --- The second sample is fixed because it was a bug in dirEntry's opApply function. There's just one thing left: import std.file; void main(){ // Error: long has no effect in expression (0) foreach (_; dirEntries(".", SpanMode.shallow)) { return; } } void test() { // works fine foreach (_; dirEntries(".", SpanMode.shallow)) { return; } } Why does the return fail if we're in main()? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
