-
Notifications
You must be signed in to change notification settings - Fork 42
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
Tk overwrites Base.Text #117
Comments
I vote for TkText definition. Currently including Tk breaks way too many other things by overriding Base.Text. |
Why is Base even exporting |
Right, so should we rename |
All of the above? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
which causes issues when using Atom.jl when importing Tk.jl in user code.
Ref: JunoLab/atom-julia-client#118
The solutions I see would be to either
Text
and require the user to useTk.Text
or maybe defineTkText
orWidget
not includeAbstractString
and instead useTkWidget(x::AbstractString)
or something similar.Edit: And since the second half of this issue doesn't appear for mysterious reasons (actually, most likely a forgotten Ctrl+Enter...):
Text{typeof(x)}(x)
everywhere in Atom to use the parametric constructor from Base, but that seems oh so ugly. Maybe there's another way to enforce using a specific constructor?I'm not sure if there's any kind of guideline for overwriting types from Base, but Tk's behaviour seems kinda strange to me. If there's something we can/should change on our side, I'd be glad to do it -- otherwise I'd be happy to implement some change in Tk as well.
The text was updated successfully, but these errors were encountered: