Improve OCUndeclaredVariableWarning>>openMenuIn#12980
Improve OCUndeclaredVariableWarning>>openMenuIn#12980MarcusDenker merged 3 commits intopharo-project:Pharo12from
Conversation
|
Jean the problem with using UI manager directly is that you are introducing a dependency to the UI part and the compiler should not depend on it. The current architecture really need a cleaning. |
|
What I wanted to:
|
|
please do not submit more enhancements until we open P12 development. |
|
@Ducasse I agree, except that the PR does to add a new dependency, because it existed already before. What the PR does is moving the dependency in a single class (instead of spreading around 2½ classes). Is the code still bad? Yes, but a little less. My whole plan is to drastically sever the compiler<->UI relationship and simplify the whole API of the compiler, that includes all the crazy hacks and specific corner cases accumulated over time. @MarcusDenker yes I agree, but that is not for short term because a lot of things are missing or breaking. I tried various kind of more radical approaches in some of my development branches (including nuke the whole thing), with non-conclusive results. Thus, the small proposed change here is a step towards the "nuke" result. @estebanlm yes, see #12978 (comment) |
MarcusDenker
left a comment
There was a problem hiding this comment.
good clean. The workaround for the RubSmalltalkCommentMode is good to remove, as this was a real ugly hack that might not be needed anymore
|
|
|
Tests on Pharo12 ok, except a crash on windows. This feels unrelated |
Low-hanging fruit. A small cleanup of openMenuIn that reduces the hackish level a little