From 7339da2ae5f15a16be3c30357fe0dd3030205728 Mon Sep 17 00:00:00 2001 From: Matt Bauman Date: Fri, 26 Jun 2015 23:35:14 -0400 Subject: [PATCH] Deprecate to_index(::Tuple) While this was an internal function, it was used in at least a few other packages. It is easy to deprecate, so we may as well do so. --- base/deprecated.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/deprecated.jl b/base/deprecated.jl index ada1adfca536d4..fd34ea16079f7c 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -428,6 +428,11 @@ function to_index{T<:Real}(A::AbstractArray{T}) Int[to_index_nodep(x) for x in A] end +function to_index(I::Tuple) + depwarn("calling to_index($I) is deprecated, use to_indexes($(join(I, ", "))) instead", :to_index) + to_indexes(I...) +end + function float_isvalid{T<:Union{Float32,Float64}}(s::AbstractString, out::Array{T,1}) tf = tryparse(T, s) isnull(tf) || (out[1] = get(tf))