Skip to content

Commit

Permalink
Add a graceful deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman committed Mar 15, 2018
1 parent e37c0e0 commit 5523674
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,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)
Expand Down

0 comments on commit 5523674

Please sign in to comment.