Bug 10607 – DirEntry has no constructor

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-11T02:46:00Z
Last change time
2013-07-14T10:42:52Z
Keywords
wrong-code
Assigned to
monarchdodra
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2013-07-11T02:46:53Z
A DirEntry can be constructed via "dirEntry(path)", however, "DirEntry(path)" will NOT construc a DirEntry. Also, it is possible to intiailize a DirEntry from another DirEntry: DirEntry a; DirEntry b = DirEntry(a); This actually creates a non-initialized DirEntry, and the construct should not be accepted anyways.
Comment #1 by monarchdodra — 2013-07-11T02:48:32Z
Comment #2 by github-bugzilla — 2013-07-14T01:56:18Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c140217d25efa1168299d069abe2a9eda10eeabc Fix Issue 10607 - DirEntry has no constructor http://d.puremagic.com/issues/show_bug.cgi?id=10607 Fixes: auto a = DirEntry("path"); //Correctly works Simplified code a little bit (Axed _init) Improved FileException usage