Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dip1000.mak
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ aa[std.path]=-dip25 # TODO
aa[std.process]=-dip1000
aa[std.random]=-dip1000
aa[std.signals]=-dip1000
aa[std.socket]=-dip25 # depends on https://github.com/dlang/phobos/pull/6204 merged, which will be at least deferred or possibly rejected (deprecation process required due to changed class Socket)
aa[std.socket]=-dip1000
aa[std.stdint]=-dip1000
aa[std.stdio]=-dip25 # TODO
aa[std.string]=-dip1000
Expand Down
12 changes: 10 additions & 2 deletions std/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -2477,13 +2477,21 @@ public:
assert(!errorSet.isSet(testPair[1]));

ubyte[1] b;
testPair[0].send(b[]);
// Socket.send can't be marked with `scope`
// -> @safe DIP1000 code can't use it - see https://github.com/dlang/phobos/pull/6204
() @trusted {
testPair[0].send(b[]);
}();
fillSets();
n = Socket.select(readSet, null, null);
assert(n == 1); // testPair[1]
assert(readSet.isSet(testPair[1]));
assert(!readSet.isSet(testPair[0]));
testPair[1].receive(b[]);
// Socket.receive can't be marked with `scope`
// -> @safe DIP1000 code can't use it - see https://github.com/dlang/phobos/pull/6204
() @trusted {
testPair[1].receive(b[]);
}();
}
});
}
Expand Down