Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirEntry interface inconsistency #10168

Open
dlangBugzillaToGithub opened this issue Mar 17, 2016 · 1 comment
Open

DirEntry interface inconsistency #10168

dlangBugzillaToGithub opened this issue Mar 17, 2016 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

freeslave93 reported this on 2016-03-17T12:55:32Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=15806

Description

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.
@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 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

@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants