From 4ea84c9a9fde008179b7b2f5b0a299de4eebd157 Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Mon, 12 Mar 2018 14:51:56 -0400 Subject: [PATCH] Add a graceful deprecation --- base/deprecated.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/deprecated.jl b/base/deprecated.jl index e0154169efd79..739959ed6f79b 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -1514,6 +1514,10 @@ end @deprecate_binding uninitialized undef @deprecate_binding Uninitialized UndefInitializer +# remove broadcast MatrixStyle and VectorStyle (Issue #26430) +@eval Broadcast Base.@deprecate_binding MatrixStyle DefaultArrayStyle{2} false +@eval Broadcast Base.@deprecate_binding VectorStyle DefaultArrayStyle{1} false + @deprecate showcompact(x) show(IOContext(stdout, :compact => true), x) @deprecate showcompact(io, x) show(IOContext(io, :compact => true), x) @deprecate sprint(::typeof(showcompact), args...) sprint(show, args...; context=:compact => true)