Help understanding besselk deprecation warning

This is what I get in Julia v0.6:

WARNING: besselk{T1 <: Number}(x::Number, y::AbstractArray{T1}) is deprecated, use ($(Expr(:globalref, Compat, Symbol("@compat"))))(besselk.(x, y)) instead.

Can you elaborate on this substitution? Is the warning message correct?

I think it is saying (in a very confusing way), that you should use @compat besselk.(x,y). If you don’t want to support lower versions of Julia, you can probably drop the @compat entirely.

1 Like

Thank you @adamslc :slight_smile: