-
-
Notifications
You must be signed in to change notification settings - Fork 749
std.parallelism with selective scoped imports #4391
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
Conversation
d1e053b to
b74e30c
Compare
std/parallelism.d
Outdated
| import std.typecons; | ||
| import core.thread : Thread; | ||
|
|
||
| import std.traits : ReturnType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment these symbols out, selective imports are not allowed at module scope in Phobos yet. See related article and forum post.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
added missing import for windows joakim-noah fix
b74e30c to
5246ed6
Compare
|
There is a Also, I think it'd be better to move the Obviously that's on linux only, you could do the other OS's too if you want. You got the other ~50- I guess by hand?- nice work on those. |
| @@ -3346,6 +3405,7 @@ private void submitAndExecute( | |||
| alias PTask = typeof(scopedTask(doIt)); | |||
| import core.stdc.stdlib; | |||
| import core.stdc.string : memcpy; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary because of the same import inside the foreach below, right? Get rid of one of them.
|
I just now found out, that parts of the unittests of parallism did't even compile anymore. Since isNaN is a template function ;-) |
|
#4399 std.parallelism seams to be broken big time |
|
Superseded by #5275 |
No description provided.