Skip to content

Commit

Permalink
Add replacement suggestion to frexp(::Array{<:AbstractFloat}) depreca…
Browse files Browse the repository at this point in the history
…tion. (#21991)
  • Loading branch information
Sacha0 authored and KristofferC committed Jun 1, 2017
1 parent f7a23d9 commit cf5c063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@ end
@deprecate ~(B::BitArray) .~B

function frexp(A::Array{<:AbstractFloat})
depwarn("`frexp(x::Array)` is discontinued.", :frexp)
depwarn(string("`frexp(x::Array)` is discontinued. Though not a direct replacement, ",
"consider using dot-syntax to `broadcast` scalar `frexp` over `Array`s ",
"instead, for example `frexp.(rand(4))`."), :frexp)
F = similar(A)
E = Array{Int}(size(A))
for (iF, iE, iA) in zip(eachindex(F), eachindex(E), eachindex(A))
Expand Down

0 comments on commit cf5c063

Please sign in to comment.