-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deprecation for Uint directs user to UInt64 instead of UInt #13221
Comments
The definition is correct in |
Right, it's not |
I did some digging. The code in I'm happy to dig further if anyone has hints, but at this stage I think I'm stuck without doing a whole lot of reading to figure out how things work. I did notice a related bug in the process of looking around, but after a git pull I found it already fixed in 3e3f353 :-) |
This is expected given the implementation as Jeff already said in the commit message
I agree the printing is a little confusing and could be improved. You can probably try to pass in the name as a symbol and store it in the |
as opposed to Would it really be acceptable to burn an additional pointer in How about storing deprecation information in a dictionary instead, keyed on the binding name and module? The lookup may be relatively expensive, but maybe that's acceptable. I'm not sure how it would work, but if the dictionary could be maintained on the julia side, there'd be much more flexibility in how to present deprecation messages. |
For now let's just hack this special case into |
Sure, fair enough for 0.4 to hardcode a special case for something as common as |
Well, I created a workaround. Yes, I do feel appropriately bad about it. |
With version 0.5.0-dev+231:
It looks like
@deprecate_binding
recommends the underlying type to the user rather than the typealias name. Clearly in this case it should be recommendingUInt
rather than the system specificUInt64
.The text was updated successfully, but these errors were encountered: