-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
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
- not export
Textand require the user to useTk.Textor maybe defineTkTextor - make
Widgetnot includeAbstractStringand 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...):
- use
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.
Metadata
Metadata
Assignees
Labels
No labels