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

Workaround incorrect Uint deprecation message #13227

Merged
merged 2 commits into from
Sep 23, 2015

Conversation

c42f
Copy link
Member

@c42f c42f commented Sep 19, 2015

The Uint deprecation warning suggested a system dependent type (UInt64 or UInt32) rather than UInt, due to this being a type alias. Hardcode a warning message for this rather common type, pending a more powerful deprecation warning system.

See #13221. I hope this is what Jeff had in mind as a quick patch for 0.4... it's pretty disgusting :-)

Fixes #13221

The Uint deprecation warning suggested a system dependent type (UInt64
or UInt32) rather than UInt, due to this being a type alias.  Hardcode a
warning message for this rather common type, pending a more powerful
deprecation warning system.
@JeffBezanson
Copy link
Member

Yes, exactly the kind of disgustingness I had in mind :)

@ivarne
Copy link
Member

ivarne commented Sep 19, 2015

A searchable keyword and a mention in a comment here to ensure improve the chances for the removal of this hack when the deprecation is removed, would be great.

@c42f
Copy link
Member Author

c42f commented Sep 19, 2015

Sure I can add an extra note if you like, but I figured that any real solution to this problem would involve touching jl_binding_deprecation_warning in any case.

@c42f
Copy link
Member Author

c42f commented Sep 20, 2015

@ivarne - reminder added for the case that the Uint deprecation goes away before the deprecation system itself gets another look.

JeffBezanson added a commit that referenced this pull request Sep 23, 2015
Workaround incorrect Uint deprecation message
@JeffBezanson JeffBezanson merged commit 1c04d43 into JuliaLang:master Sep 23, 2015
tkelman pushed a commit that referenced this pull request Sep 23, 2015
The Uint deprecation warning suggested a system dependent type (UInt64
or UInt32) rather than UInt, due to this being a type alias.  Hardcode a
warning message for this rather common type, pending a more powerful
deprecation warning system.

(cherry picked from commit 9723ec0)
ref #13227
tkelman pushed a commit that referenced this pull request Sep 24, 2015
The Uint deprecation warning suggested a system dependent type (UInt64
or UInt32) rather than UInt, due to this being a type alias.  Hardcode a
warning message for this rather common type, pending a more powerful
deprecation warning system.

(cherry picked from commit 9723ec0)
ref #13227
@c42f c42f deleted the fix-Uint-deprecation-message branch September 29, 2015 13:14
tkelman added a commit that referenced this pull request May 27, 2016
tkelman added a commit that referenced this pull request May 27, 2016
tkelman added a commit that referenced this pull request May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants