Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

std.socket: Mark SocketException.errorCode as scheduled for deprecation

  • Loading branch information...
commit 6313c40bca3bcd5425531037b9ac136c37b02b76 1 parent 7aa9e5f
@CyberShadow authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 std/socket.d
View
10 std/socket.d
@@ -126,9 +126,13 @@ else
/// Base exception thrown by $(D std.socket).
class SocketException: Exception
{
- /// Deprecated. Provided for compatibility with older code using
- /// $(D SocketException). Use $(D SocketOSException) instead.
- deprecated @property int errorCode()
+ /**
+ * $(RED Scheduled for deprecation. Please use $(D SocketOSException)
+ * instead.)
+ *
+ * Provided for compatibility with older code using $(D SocketException).
+ */
+ @property int errorCode()
{
auto osException = cast(SocketOSException)this;
if (osException)
Please sign in to comment.
Something went wrong with that request. Please try again.