Bug 15806 – DirEntry interface inconsistency

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-17T12:55:32Z
Last change time
2024-12-01T16:26:22Z
Keywords
trivial
Assigned to
No Owner
Creator
Roman
Moved to GitHub: phobos#10168 →

Comments

Comment #0 by freeslave93 — 2016-03-17T12:55:32Z
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 by dlang-bot — 2021-08-14T02:30:56Z
@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 by robert.schadek — 2024-12-01T16:26:22Z
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