You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IpAddr is in deprecated.jl in 0.4.x. It's both exported (export TcpSocket, UdpSocket, IpAddr) and reassigned (const IpAddr = IPAddr). If I understand it correctly, this produces an apparent inconsistency in which a deprecated object (IpAddr) is visible and returns IPAddr, but the non-deprecated object(IPAddr) is not exported. I'm not sure what the correct behavior is here, but it seems to me that either IPAddr should be exported, or NEITHER IPAddr nor IpAddr should.
in 0.3, IpAddr is not exported:
julia> IpAddr
ERROR: IpAddr not defined
julia> Base.IpAddr
IpAddr
julia> VERSION
v"0.3.4"
I'd tend to agree, especially since IPAddr is an abstract class. The reason this is important is because it determines how to fix the lingering problem introduced in JuliaLang/Compat.jl#35 and whether or not the fix proposed in JuliaLang/Compat.jl#36 will (or should be allowed to) work.
Perhaps a silly question:
IpAddr
is indeprecated.jl
in 0.4.x. It's both exported (export TcpSocket, UdpSocket, IpAddr
) and reassigned (const IpAddr = IPAddr
). If I understand it correctly, this produces an apparent inconsistency in which a deprecated object (IpAddr
) is visible and returns IPAddr, but the non-deprecated object(IPAddr
) is not exported. I'm not sure what the correct behavior is here, but it seems to me that eitherIPAddr
should be exported, or NEITHERIPAddr
norIpAddr
should.in 0.3,
IpAddr
is not exported:What is the proper behavior here?
Refs:
The text was updated successfully, but these errors were encountered: