JuliaGraphics / Tk.jl

Julia interface to Tk windowing toolkit.
Other
53 stars 42 forks source link

Tk overwrites Base.Text #117

Open pfitzseb opened 8 years ago

pfitzseb commented 8 years ago

which causes issues when using Atom.jl when importing Tk.jl in user code.

Ref: https://github.com/JunoLab/atom-julia-client/issues/118

The solutions I see would be to either

Edit: And since the second half of this issue doesn't appear for mysterious reasons (actually, most likely a forgotten Ctrl+Enter...):

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.

Nectarineimp commented 7 years ago

I vote for TkText definition. Currently including Tk breaks way too many other things by overriding Base.Text.

tkelman commented 7 years ago

Why is Base even exporting Text ? That seems internal to the Markdown parser and not a type users should need to work with very often.

pfitzseb commented 7 years ago

Right, so should we rename Tk.Text, unexport it from Tk or unexport Text from Base?

tkelman commented 7 years ago

All of the above?