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