-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
[Trivial]std.functional: -dip1000 compilable by @safe => @system unit… #6351
Conversation
The right change here would have been making memoize |
@JackStouffer Why "would have been"? It still can be done and then go back to @safe unittest.
|
Because allowing a regression in safety to pass the test suite is not desirable. Better that DIP1000 error until memoize compiles in The goal here is not just to get DIP1000 to compile. |
To some extent, it is. DIP1000 cannot be realistically used at all until Phobos compiles with it. It's a bit of all or nothing. If some compromises are made in the process, those can be addressed afterwards. Phobos still is not fully @safe anyway. |
…test
https://github.com/dlang/phobos/blob/master/dip1000.mak with
aa[std.functional]=-dip1000
Errors when running: make -f posix.mak std/functional.test
...
Fixing memoize to be @safe requires a lot of @trusted usage, thus I abstain from that