www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10607] New: DirEntry has no constructor

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10607

           Summary: DirEntry has no constructor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com



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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10607


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|NEW                         |ASSIGNED
         AssignedTo|nobody puremagic.com        |monarchdodra gmail.com



https://github.com/D-Programming-Language/phobos/pull/1407

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10607




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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 14 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10607


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 14 2013