Make std.socket DIP1000 compatible#6384
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + phobos#6384" |
std/socket.d
Outdated
|
|
||
| ubyte[1] b; | ||
| testPair[0].send(b[]); | ||
| // std.socket isn't fully @safe anymore - see https://github.com/dlang/phobos/pull/6204 |
There was a problem hiding this comment.
This comment seems odd/wrong – std.socket is just as safe as before, it's just that the send/receive arguments aren't marked as scope, so client code isn't safe anymore with dip1000.
There was a problem hiding this comment.
Ok. Tried to improve the wording.
|
Seems like the best compromise – |
From @WalterBright:
#6204 (comment)