Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated int(x) use in @enum #11227

Closed
jiahao opened this issue May 11, 2015 · 0 comments
Closed

Deprecated int(x) use in @enum #11227

jiahao opened this issue May 11, 2015 · 0 comments
Labels
docs This change adds or pertains to documentation

Comments

@jiahao
Copy link
Member

jiahao commented May 11, 2015

Running the doctest in the @enum docs produces a deprecation warning:

julia> @enum FRUIT apple=1 orange=2 kiwi=3

julia> f(x::FRUIT) = "I'm a FRUIT with value: $(int(x))"
f (generic function with 1 method)

julia> f(apple)
WARNING: int(x) is deprecated, use Int(x) instead.
 in depwarn at ./deprecated.jl:42
 in int at deprecated.jl:31
 in f at none:1
"I'm a FRUIT with value: 1"
jiahao added a commit that referenced this issue May 11, 2015
Update to 0.4 output and syntax.

All doctests run successfully again except #11227

Note also #11225; output may yet change.

Also include miscellaneous formatting and typo fixes.

Also removes doc entry for apply() (now deprecated)
@JeffBezanson JeffBezanson added the docs This change adds or pertains to documentation label May 25, 2015
mbauman pushed a commit to mbauman/julia that referenced this issue Jun 6, 2015
Update to 0.4 output and syntax.

All doctests run successfully again except JuliaLang#11227

Note also JuliaLang#11225; output may yet change.

Also include miscellaneous formatting and typo fixes.

Also removes doc entry for apply() (now deprecated)
mbauman pushed a commit to mbauman/julia that referenced this issue Jun 6, 2015
tkelman pushed a commit to tkelman/julia that referenced this issue Jun 6, 2015
Update to 0.4 output and syntax.

All doctests run successfully again except JuliaLang#11227

Note also JuliaLang#11225; output may yet change.

Also include miscellaneous formatting and typo fixes.

Also removes doc entry for apply() (now deprecated)
tkelman pushed a commit to tkelman/julia that referenced this issue Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

2 participants