Skip to content

Commit

Permalink
Add deprecation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Nov 6, 2015
1 parent ebe694c commit 91181e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/combinatorics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ function invperm(a::AbstractVector)
b
end

#Moved out of base in Julia 0.5
for deprecatedfunc in [:combinations, :prevprod, :levicivita, :nthperm!,
:nthperm, :parity, :partitions, :permutations]

@eval error("$deprecatefunc has been moved to the package Combinatorics.jl.\n",
"Run Pkg.add(\"Combinatorics\") to install Combinatorics on Julia v0.5-")
end

0 comments on commit 91181e6

Please sign in to comment.