From 91181e6341aadf8b5a7e3e6d1364d23b81e6b46b Mon Sep 17 00:00:00 2001 From: Jiahao Chen Date: Fri, 6 Nov 2015 16:19:13 -0500 Subject: [PATCH] Add deprecation errors --- base/combinatorics.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/combinatorics.jl b/base/combinatorics.jl index fa535179ceeede..331ca43c5ef23f 100644 --- a/base/combinatorics.jl +++ b/base/combinatorics.jl @@ -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 +