Skip to content

Commit

Permalink
at-math_const: add deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jul 2, 2015
1 parent 91ebd61 commit 415f88b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,10 @@ const UnionType = Union
export UnionType

const MathConst = Irrational
export MathConst

macro math_const(sym, val, def)
depwarn("@math_const is deprecated and renamed to @irrational.", symbol("@math_const"))
:(@irrational $(esc(sym)) $(esc(val)) $(esc(def)))
end

export MathConst, @math_const

0 comments on commit 415f88b

Please sign in to comment.