Issue 15806 - DirEntry interface inconsistency
Summary: DirEntry interface inconsistency
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: trivial
Depends on:
Blocks:
 
Reported: 2016-03-17 12:55 UTC by Roman
Modified: 2024-12-01 16:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Roman 2016-03-17 12:55:32 UTC
DirEntry on Windows has most methods nothrow, pure and const, while on Posix they can throw and are mutable.

So when one developed application on Windows they can get unexpected problems on Posix, e.g. const(DirEntry) will not compile, nothrow functions will not compile and code will occasionally throw.
Comment 1 Dlang Bot 2021-08-14 02:30:56 UTC
@tspike2k created dlang/phobos pull request #8193 "Issue 15806: DirEntry properties on Posix have different attributes than on Windows" mentioning this issue:

- Issue 15806: std.file.DirEntry properties on Posix are now marked as const nothrow pure.

https://github.com/dlang/phobos/pull/8193
Comment 2 dlangBugzillaToGithub 2024-12-01 16:26:22 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10168

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB