Skip to content

Commit a2c5b60

Browse files
committed
Added forward compatibility aliases for JuliaLang#8175
After renaming some constants in JuliaLang#8175, it became harder to write the same code to target 0.3.x and 0.4-dev. This PR potentially adds aliases, so that when 0.3.1 gets released, less mainanance intrested package authors can drop support for 0.3.0, and be compatible with both 0.3.1 and 0.4-dev with the same code base, without version conditionals.
1 parent 795bc31 commit a2c5b60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: base/deprecated.jl

+8
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,11 @@ scale!{T<:Base.LinAlg.BlasReal}(X::Array{T}, s::Complex) = error("scale!: Cannot
159159

160160
@deprecate which(f::Callable, args...) @which f(args...)
161161
@deprecate rmdir rm
162+
163+
164+
# 0.4 compatibility utilities (to simplify 0.4/0.3.1 compatibility)
165+
166+
export TCPSocket, UDPSocket, IPAddr
167+
const TCPSocket = TcpSocket
168+
const UCPSocket = UdpSocket
169+
const IPAddr = IpAddr

0 commit comments

Comments
 (0)