diff --git a/src/Compat.jl b/src/Compat.jl index 4f238759c..a00fe4b34 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -99,9 +99,6 @@ module TypeUtils export isabstract, parameter_upper_bound, typename end # module TypeUtils -# @view, @views, @__dot__ -include("arraymacros.jl") - # https://github.com/JuliaLang/julia/pull/25646 @static if VERSION < v"0.7.0-DEV.3510" # not exported diff --git a/src/arraymacros.jl b/src/arraymacros.jl deleted file mode 100644 index 570e8a489..000000000 --- a/src/arraymacros.jl +++ /dev/null @@ -1,7 +0,0 @@ -# TODO deprecate -# this was defined for use with Julia versions prior to 0.5 -# (see https://github.com/JuliaLang/Compat.jl/pull/316) -macro dotcompat(x) - esc(_compat(Base.Broadcast.__dot__(x))) -end -export @dotcompat diff --git a/src/deprecated.jl b/src/deprecated.jl index 88e9dd309..e0d875dc4 100644 --- a/src/deprecated.jl +++ b/src/deprecated.jl @@ -75,6 +75,14 @@ if VERSION >= v"1.1.0-DEV.506" end end +# this was defined for use with Julia versions prior to 0.5 +# (see https://github.com/JuliaLang/Compat.jl/pull/316) +macro dotcompat(x) + Base.depwarn("`@dotcompat x` is deprecated, use `@compat @. x` instead.", Symbol("@dotcompat")) + esc(:(Compat.@compat @. $x)) +end +export @dotcompat + # to be deprecated: # * Compat.Random.uuid1, uuid4, uuid_version (in favour of Compat.UUIDs.*)