Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 10, 2012 [Issue 7264] New: Can't iterate result from 4-arg dirEntries as string | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7264 Summary: Can't iterate result from 4-arg dirEntries as string Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: aldacron@gmail.com --- Comment #0 from Mike Parker <aldacron@gmail.com> 2012-01-10 00:24:33 PST --- This example given for the 3-arg version of dirEntries works as expected: --- foreach (string name; dirEntries(".", "*.d", SpanMode.breadth)) { writeln(name); } --- But when modified to use the 4-arg version, like so: --- import std.stdio, std.file; void main() { foreach (string name; dirEntries(".", "*.d", SpanMode.breadth)) { writeln(name); } } --- It fails with this error: fail.d(7): Error: cannot implicitly convert expression (__r13.front()) of type D irEntry to string -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 10, 2012 [Issue 7264] Can't iterate result from 4-arg dirEntries as string | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | http://d.puremagic.com/issues/show_bug.cgi?id=7264 --- Comment #1 from Mike Parker <aldacron@gmail.com> 2012-01-10 00:26:25 PST --- Sorry for the copy-paste error. The first example should have been this: --- foreach (string name; dirEntries(".", SpanMode.breadth)) { writeln(name); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 17, 2012 [Issue 7264] Can't iterate result from 4-arg dirEntries as string | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | http://d.puremagic.com/issues/show_bug.cgi?id=7264 --- Comment #2 from github-bugzilla@puremagic.com 2012-03-17 10:20:09 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/58f1b2bc512059bbd36c36324208ed062ffea8f9 Merge pull request #495 from blackwhale/issue-7138 dirEntries issues 7264 & 7138 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 17, 2012 [Issue 7264] Can't iterate result from 4-arg dirEntries as string | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | http://d.puremagic.com/issues/show_bug.cgi?id=7264 Dmitry Olshansky <dmitry.olsh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dmitry.olsh@gmail.com Resolution| |FIXED --- Comment #3 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2012-03-17 10:29:44 PDT --- https://github.com/D-Programming-Language/phobos/pull/495 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation